Page 1 of 1

Uploading to dynamic dirs

Posted: Sat Mar 22, 2008 5:12 pm
by dstonek
Previous v2.0 (or maybe before that) the applet was embeded into a html file.
So, I could have
document.writeln('<PARAM NAME="value7" VALUE="<?=$_SESSION["code"]?>">');

where <?=$_SESSION["code"]?> is the print of SESSION var named "code" (php)

At this time it is called from the html file as
<script src="applet_http.js"></script>
The problem I have is that <?=$_SESSION["code"]?> is not recognized inside applet_http.js
How can this be performed?

If I copy paste entire content of applet_http.js into
<script type="text/javascript">
</script>
in html file it goes as usual, but html woud be bulky.

I've tried to define
<script type="text/javascript">
var code = '<?=$_SESSION["code"]?>';
</script>
and set
document.writeln('<PARAM NAME="value7" VALUE=code>');
in applet_http.js but it does not work.
Thanks.

Re: Uploading to dynamic dirs

Posted: Sun Mar 23, 2008 7:50 pm
by support
Rename applet_http.js in applet_http_js.php Then update the link in the HTML and it should work.
Notice that you could also copy/paste the JavaScript into the HTML, it should work too.