[nycphp-talk] Leaky Javascript

D C Krook dkrook at
Wed Apr 2 14:56:21 EST 2003


How are you packaging the JavaScript in the head of your page?  With HTML 
comments? a type attribute?  What other items are also in the head?


>I am having a persistent problem with Javascript appearing in the body of
>my .php page when it first loads.
>NOTE: the code in question is NOT in the body of the page -- it's in the
>head.  Sometimes it's just a half a line of code, other times it's a
>combination of Javascript from the head and partial HTML tags from the
>body. I had noticed that it seems to start with a particular line of code,
>and I have since gone through and cleaned up and reduced the number of
>lines of script (removed comments, vestigial routines, etc.) but the
>problem persists.
>On Reload/Refresh the page rights itself and all is well.
>Any ideas?

Add photos to your e-mail with MSN 8. Get 2 months FREE*.

More information about the talk mailing list