Uploading to dynamic dirs
Posted: Sat Mar 22, 2008 5:12 pm
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.
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.