C
cirillo curiosone
Hi all!
here'm my problem.
In a parametric code i have to select which js file to load
but, even if the path string composition is right, the js file is not
executed.
See below:
<head>
.......
<script type="text/javascript">
var gal_num=parent.scelta;
var
gal_par_path=gal_path[gal_num]+"gallery"+gal_num+"/g"+gal_num+"_par.js";
</script>
<script type="text/javascript" src=gal_par_path></script>
</head>
I have tested the gal_par_path in the body, it looks right!
On the contrary, the file is executed if, instead of the local variable
i write it entirely.
Thanks all for any help.
here'm my problem.
In a parametric code i have to select which js file to load
but, even if the path string composition is right, the js file is not
executed.
See below:
<head>
.......
<script type="text/javascript">
var gal_num=parent.scelta;
var
gal_par_path=gal_path[gal_num]+"gallery"+gal_num+"/g"+gal_num+"_par.js";
</script>
<script type="text/javascript" src=gal_par_path></script>
</head>
I have tested the gal_par_path in the body, it looks right!
On the contrary, the file is executed if, instead of the local variable
i write it entirely.
Thanks all for any help.