External Includes

arai_speed

New Member
Hi everyone, firt time user and complete progress noob! :)

I wanted to know if progress or webspeed support external file includes similar to other languages such as PHP/JSP.

i.e.

<? include 'http://somehost.com/somefile.inc' ?>

I want to load and include file that contains a series of javascript files and I was wondering if this is possible.

Thanks for the help!
 
Hi,

Progress/WebSpeed also know include files. You can reference an include in your code by using "curly braces". For instance in WebSpeed:
Code:
<script language="SpeedScript">
{myinclude.i} 
</script>
will include the contents myinclude.i in your code. If you use a relative path the file must be available to the compiler in the ProPath of your WebSpeed session.

Now, it's been a while since I have last played around in WebSpeed, but I don't think (and I must say I have never tried) that you can use a url in the include file reference. But, give it a shot anyway. Also, unlike PHP, the contents of the include file should be Progress 4GL (OpenEdge ABL) and cannot then contain pure chunks of html again. So in your case you would have to make Progress write the javascript references with "put" statements.
 
Back
Top