473,587 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Site with JavaScript fails to render page in IE 6 or 7 but fine with FF

JJA
Previously, anything IE did not like threw some sort of error like
"object expected", etc. Now all I get is "Done" on the status bar...

I am suddenly having trouble with Internet Explorer. Both IE 7 and IE
6 behave the same way - they fail to render the page at all yet do not
seem to be detecting any errors on the client side. No errors occur on
the web server either.

I've issued VIEW SOURCE on this blank IE screen and captured it to a
text file. It looks "complete" to me and I am puzzled as to why it
won't render anything.

Yet everything renders fine with Firefox 1.5.0.11 !

I've issued VIEW SOURCE on the Firefox screen and captured it to a
text file with a different name. I've compared the IE text file with
the FF text file and they are identical.

I've replicated everything on our public web server so you experts
could have a look and offer comments or ideas.

Please browse the following and compare Firefox results to IE:

http://gis.cbmiweb.com/MDWmaps/

I am really stumped and hope someone can suggest something.

Apr 10 '07 #1
4 2141
Hmmm - I took a very quick look and I wonder if it might be a simple
code problem.
I looked at it in IE's developer toolbar and when I checked the DOM,
the body tag had no children. that's why nothings displaying, while
the head is fine, and the title displays properly. I compared the
source, and the code for the body is there... so looking above the
body, trying to find something that might screw up IE's parser, I
found two candidates:

1) your <linktag isn't formed properly. you have <link></>; it
should be <link /for XHTML.

2) you have your inline script (browser detection) inside a comment,
but you haven't closed the comment. for some reason, FF as well as
Dreamweaver ignore this, however, the first following closed comment
is inside of the body tag (<!-- header -->) - I wonder if that's it.
On Apr 10, 12:34 pm, "JJA" <johnadam...@gm ail.comwrote:
Previously, anything IE did not like threw some sort of error like
"object expected", etc. Now all I get is "Done" on the status bar...

I am suddenly having trouble with Internet Explorer. Both IE 7 and IE
6 behave the same way - they fail to render the page at all yet do not
seem to be detecting any errors on the client side. No errors occur on
the web server either.

I've issued VIEW SOURCE on this blank IE screen and captured it to a
text file. It looks "complete" to me and I am puzzled as to why it
won't render anything.

Yet everything renders fine with Firefox 1.5.0.11 !

I've issued VIEW SOURCE on the Firefox screen and captured it to a
text file with a different name. I've compared the IE text file with
the FF text file and they are identical.

I've replicated everything on our public web server so you experts
could have a look and offer comments or ideas.

Please browse the following and compare Firefox results to IE:

http://gis.cbmiweb.com/MDWmaps/

I am really stumped and hope someone can suggest something.

Apr 10 '07 #2
JJA
On Apr 10, 3:57 pm, "christoph.s... @gmail.com"
<christoph.s... @gmail.comwrote :
Hmmm - I took a very quick look and I wonder if it might be a simple
code problem.
I looked at it in IE's developer toolbar and when I checked the DOM,
the body tag had no children. that's why nothings displaying, while
the head is fine, and the title displays properly. I compared the
source, and the code for the body is there... so looking above the
body, trying to find something that might screw up IE's parser, I
found two candidates:

1) your <linktag isn't formed properly. you have <link></>; it
should be <link /for XHTML.

2) you have your inline script (browser detection) inside a comment,
but you haven't closed the comment. for some reason, FF as well as
Dreamweaver ignore this, however, the first following closed comment
is inside of the body tag (<!-- header -->) - I wonder if that's it.

On Apr 10, 12:34 pm, "JJA" <johnadam...@gm ail.comwrote:
Previously, anything IE did not like threw some sort of error like
"object expected", etc. Now all I get is "Done" on the status bar...
I am suddenly having trouble with Internet Explorer. Both IE 7 and IE
6 behave the same way - they fail to render the page at all yet do not
seem to be detecting any errors on the client side. No errors occur on
the web server either.
I've issued VIEW SOURCE on this blank IE screen and captured it to a
text file. It looks "complete" to me and I am puzzled as to why it
won't render anything.
Yet everything renders fine with Firefox 1.5.0.11 !
I've issued VIEW SOURCE on the Firefox screen and captured it to a
text file with a different name. I've compared the IE text file with
the FF text file and they are identical.
I've replicated everything on our public web server so you experts
could have a look and offer comments or ideas.
Please browse the following and compare Firefox results to IE:
http://gis.cbmiweb.com/MDWmaps/
I am really stumped and hope someone can suggest something.
Yes that was it .... thanks for looking. I added the closing comment.

Apr 10 '07 #3
ch************@ gmail.com said the following on 4/10/2007 3:57 PM:
Hmmm - I took a very quick look and I wonder if it might be a simple
code problem.
I looked at it in IE's developer toolbar and when I checked the DOM,
the body tag had no children. that's why nothings displaying, while
the head is fine, and the title displays properly. I compared the
source, and the code for the body is there... so looking above the
body, trying to find something that might screw up IE's parser, I
found two candidates:

1) your <linktag isn't formed properly. you have <link></>; it
should be <link /for XHTML.
IE doesn't know what XHTML is so it is a moot point. It will all become
tag soup HTML. But why server XHTML to a browser that doesn't know what
it is?

Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 10 '07 #4
On Apr 11, 6:25 am, "JJA" <johnadam...@gm ail.comwrote:
[...]
Yes that was it .... thanks for looking. I added the closing comment.
Wrong fix. HTML comment delimiters inside script elements are a
complete waste of time (as you've discovered), remove them entirely.
In an XML document, browsers have a right to ignore *anything* between
<!-- and -->, including script. But using XHTML on the web is
pointless, use HTML 4.01 strict.

<URL:
http://groups.google.com.au/group/co...ee3e381d9b2755
>

The best way to include script in an XML file is to use an external
script file. If you really must include script, use CDATA delimiters:

<script type="text/javascript">
<![CDATA[
... unescaped script content ...
]]>
</script>

<URL: http://www.w3.org/TR/xhtml1/#h-4.8 >
--
Rob

Apr 10 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

72
4434
by: B McDonald | last post by:
http://www.galtsvalley.com Hi all. I've recently made some major stylistic changes to my site and now it is essentially a new design with some new CSS plumbing. I am hoping that a few hardy souls can go check it out and tell me how it renders on their platform/browser combos. I have tested it under W2K, WXP, and System 9 on a Power Mac...
1
1270
by: Svein Terje Gaup | last post by:
When I try to validate my webpages on http://validator.w3.org the validation fails because of the auto-generated postback function: <script language="javascript"> <!-- function __doPostBack(eventTarget, eventArgument) { var theform = document.defaultframework_Default; theform.__EVENTTARGET.value = eventTarget;...
5
1766
by: sk | last post by:
Hi, I'm trying to override the Render method of my Page class. Are there any standard guidelines for this? Thanks. Shardul
3
2820
by: Peter | last post by:
Hello, We are inserting a side menu to our application using a class that is writing HTML on all our pages. This is a part of the code as an example: writer.Write(" <table WIDTH=""100%"" BORDER=""0"" CELLSPACING=""0"" CELLPADDING=""0"" ID=""Table1""> " & vbNewLine) writer.Write(" <tr>" & vbNewLine) writer.Write(" ...
4
2512
by: client site dll in vbscript | last post by:
Hi i have one dll on client site,i want to use it in aspx page, on clinet site Is it possible or not .Please tell me the solution Please email me at indipren@hotmail.com Regarda Indi
6
1901
by: drec | last post by:
I am just learning Javascript and I would like to create a basic form that gives me two options. This will be using either checkbox or radio input type, however I would like the second option to allow the user to type in a value. Also, I would like the 2nd option only editable if the button for that option is selected. All I can seem to...
9
1985
by: dreamamit2001 | last post by:
Hi, I am new user to ASP.NET2.0? I would like to know can Macintosh users able to access ASP.NET 2.0 site ? I also want to know what are the features of ASP.NET2.0 which are not supported for Mancintosh pcs? what are the workarounds for them? Please guide me if anybody has accessed ASP.NET2.0 from Macintosh Pc.
2
2175
by: verci | last post by:
Hi guys, sorry if this seems stupid but I'm a newbie, I'm running Windows XP Pro SP2, IE 7, VS2005, ASP.net 2.0 The problem is that I'm trying to display this news scroller made in a Javascript file(newsscroller.js) in my ASP page, everything works great in a normal HTML page, I can see the scroller just fine, but in an ASP page it just...
10
3449
by: paulie | last post by:
Hi, I have been experiencing an issue when trying to use AJAX to reload a DIV area using a timer of 2000ms, which contains a html page with another DIV and javascript. Scenario ------------- I have perl script which simply runs a ps on a Solaris server and generates a static html page with all of the code perfectly and this html page...
0
8206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.