April 1st, 2003, 09:29 AM
I've got my main php file which opens an external .js file and in this external .js file is a popup window script with the link to open in this popup window. Now what I want to know is how to transfer a variable from my main php file through url to this external .js file? I know how to transfer a variable to another php file.
April 1st, 2003, 10:57 AM
If I understand you correct you have this external .js file and a .php file where you 'create' the links you want to external .js file to handle (in the popup)? If that's the case, then just load the .js file AFTER the variables in the .php file: (basic version)
echo "var url = 'http://forums.devshed.com' ";