[nycphp-talk] Leaky Javascript
betenoir at echonyc.com
betenoir at echonyc.com
Wed Apr 2 15:20:32 EST 2003
Hi Dan
>
>How are you packaging the JavaScript in the head of your page? With HTML
>comments?
Yes
<HTML><HEAD><TITLE>My Title</TITLE>
<META content=text/html;CHARSET=iso-8859-1 http-equiv=Content-Type>
<SCRIPT language="javascript">
<!-- //
x = 0;
y = 0;
z = 0;
function doThis() {
blah = foo;
}
function doThat() {
if (blah == foo) {
yadda yadda;
}
}
// -->
</SCRIPT>
<LINK REL=stylesheet HREF="./looking_good.css" TYPE="text/css">
</HEAD>
a type attribute? What is should the type attribute be?
>What other items are also in the head?
Just the title tags and the linked stylesheet.
>-Dan
>
>
>>
>>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?
>>
>>Clyde
>>
>
>_________________________________________________________________
>Add photos to your e-mail with MSN 8. Get 2 months FREE*.
>http://join.msn.com/?page=features/featuredemail
>
>
>
>--- Unsubscribe at http://nyphp.org/list/ ---
More information about the talk
mailing list