Uploading to dynamic dirs

Upload core product.
Post Reply
dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Uploading to dynamic dirs

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Uploading to dynamic dirs

Post 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.

Post Reply