Does it not work without the eval?
Nope, only with eval.
Thanks,
User Profile
Collapse
-
Worked like this
...Code:<p id="audioplayer_m">Play</p> <script type="text/javascript" language="JavaScript"> function choosebox1() { var filmus=""; varNumber = <?php echo '"'.$i.'"'; ?>; for (k=0; k<varNumber; k++) { if(document.getElementById('CBT'+k).checked){ if (filmus==""){Leave a comment:
-
Getting a value from a script variable
Hi,
I have this piece of code and I need to get the value of the variable 'filmus1" into the audioplayer line.
...Code:<p id="audioplayer_m">blabla</p> <script type="text/javascript" language="JavaScript"> function choosebox1() { var filmus=""; var filmus1= "";; varNumber = <?php echo '"'.$i.'"';
No activity results to display
Show More
Leave a comment: