Menu
Hello,
I am having php generate an array which needs to be accessed by a javascript function in a .js file.
I have tried including the following in the .js file:
document.write(“<SCR” + “IPT LANGUAGE=’JavaScript1.2′ SRC=’New_Arrays4_2.js.php’ TYPE=’text/javascript’></SCR” + “IPT>”);
but this doesn’t seem to work.
I know the output of the php file is ok because when I paste its output into the .js file it works fine.
Thank you for any help.
Patty