-
My HTML source code mutated in Netscape! Could it cause by Javascript?
Hi there,
i have a page which include a lot of scripting and new data type. Anyway,
when i run the page in netscape. My
HTML source code was Distorted as following.
********************Original HTML code**********************
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FF99CC"><a href="#" onmouseout="javascript: blnStop=true;"
onmouseover="javascript:
blnStop=false; scrollSection(0, 0, 5);">a</a></td>
<td bgcolor="#FF0099"><a href="#" onmouseover="javascript: blnStop=false;
scrollSection(0, arySection[0],
30);">A</a></td>
<td bgcolor="#FF0033"><a href="#" onmouseover="javascript: blnStop=false;
scrollSection(0, arySection[1],
30);">B</a></td>
<td bgcolor="#FF6666"><a href="#" onmouseover="javascript: blnStop=false;
scrollSection(0, arySection[2],
30);">C</a></td>
<td bgcolor="#FF6633"><a href="#" onmouseover="javascript: blnStop=false;
scrollSection(0, arySection[3],
30);">D</a></td>
<td bgcolor="#FFCC66"><a href="#" onmouseover="javascript: blnStop=false;
scrollSection(0, arySection[4],
30);">E</a></td>
<td bgcolor="#FFFF33"><a href="#" onmouseover="javascript: blnStop=false;
scrollSection(0, arySection[5],
30);">F</a></td>
<td bgcolor="#CCCC00"><a href="#" onmouseover="javascript: blnStop=false;
scrollSection(0,
arySection[6], 30);">G</a></td>
<td bgcolor="#999900"><a href="#" onmouseout="javascript: blnStop=true;"
onmouseover="javascript:
blnStop=false; scrollSection(0, 305, 5);">b</a></td>
</tr>
</table>
********************Distorted HTML code**********************
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD bgcolor="#FF99CC"><A href="#" onmouseout="javascript: blnStop=true;"
onmouseover="javascript:
blnStop=false; scrollSection(0, 0, );">a</A></TD>
<TD bgcolor="#FF0099"><A href="#" onmouseover="javascript: blnStop=false;
scrollSection(0,
arySection[0], 30);">A</A></TD>
<TD bgcolor="#FF0033"><A href="#" onmouseover="javascript: blnStop=false;
scrollSection(0,
arySection[1], 30);">B</A></TD>
<TD bgcolor="#FF6666"><A href="#" onmouseover="javascript: blnStop=false;
scrollSection(0,
arySection[2], 30);">C</A></TD>
<TD bgcolor="#FF6633"><A href="#" onmouseover="javascript: blnStop=false;
scrollSection(0,
arySection[3], 30);">D</A></TD>
<TD bgcolor="#FFCC66"><A href="#" onmouseover="jav
ascript: blnStop=false; scrollSection(0, arySection[4], 30);">E</A></TD>
<TD bgcolor="#FFFF33"><A href="#" onmouseover="javascript: blnStop=false;
scrollSection(0,
arySection[5], 30);">F</A></TD>
<TD bgcolor="#CCCC00"><A href="#" onmouseover="javascript: blnStop=false;
scrollSection(0,
arySection[6], 30);">G</A></TD>
<TD bgcolor="#999900"><A href="#" onmouseout="javascript: blnStop=true;"
onmouseover="javascript:
blnStop=false; scrollSection(0, 305, 5);">b</A></TD>
</TR>
</TABLE>
**********************************************************
the Original HTML code mean the HTML source code I have written, while the
Distorted HTML code is those
code when i "Page source" in netscape.
it happens that netscape add some return or line feed to my source code.
the distorted source code is marked in red (hopefully every can see it).
The problem happen when the netscape try
to interpret rated the word "jav" which is actually the first three character
of "javascript". Since there is no such
things (or variable) as "jav" in my program, error occurs.
it happened the second times when i create some object for layers. I am not
sure the source of such mutation in
HTML code. If anyone have such experience, please let me know why this is
happening (am i bad luck?) and most
of all, how to solve it.
regards
James
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks