Raditha Dissanayake wrote:





It's not a javascript question, or problem. As I said in my original post,
it works fine if it's a regular html file. But when I put it in a variable
in php, then use that variable from an included file, the javascript is not
executed. What can I do to fix this?



Like i said you have to look at the mozilla javascript console which you obviously have not done.


I am sorry my last mail sounded a bit snappish. Please accept my appologies. My point is that if you open the javascript console in mozilla this will point you to the exact location of the error. If instead you are using explorer that will either show you an error icon in the status bar or if you have frontpage or visual studio installed it may popup a debug dialog box. Since I work in linux mozzilla console is my preffered method.

TO back track a bit. It's is normally safer to include the javascript via <script src='..'> rather than to spit it out with PHP. Since this avoids all the complications and allows you to debug your javscript separately (perhaps using a static html).

all the best



--
Raditha Dissanayake.
---------------------------------------------------------------
http://www.radinks.com/upload/ Drag and Drop Upload thousands of files and folders in a single
transfer. (HTTP or FTP)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to