ASP site with Javascript fails to render page in IE 6 or 7 but fine with FF

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.
jjamjatraAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kevp75Commented:
there is one thing I notice  (only by lookingquickly of course..)

this line:
<link rel="stylesheet" type="text/css" href="default.css"></>

see the extra </> at the end of the line...it is unneeded
0
jitgangulyCommented:
Take off this portion

<script type="text/javascript" language="javascript">
    var stateOfMapserver = "layers%3D0%2C1%2C2%24viewport%3D2%2E1723538776377947e%2B002%2C2%2E1723538776377947e%2B002%2C1%2E1460654220948415e%2B005%2C1%2E0504115842780631e%2B005%24";
</script>
<script type='text/javascript' src="Scripts/+sfgRmluamFuX1R5cGU9amF2YV9zY3JpcHQmRmluamFuX0xhbmc9dGV4dC9qYXZhc2NyaXB0+/Manifold_AJAX.js" ></script>
<!-- content scripting -->
<script type="text/javascript" language="javascript">
<!--
var opera = (navigator.userAgent.indexOf("Opera") >= 0)? true: false;
var ie = (document.all && !opera)? true: false;
var nn4 = (document.layers)? true: false;
var bandH = 480;
var bandW = 640;
var bandX = -1;
var bandXOffset = 0;
var bandY = -1;
var bandYOffset = 0;
</script>

and it works.
So check those faulty JS in IE
0
jjamjatraAuthor Commented:
Thanks for the quick look. I went to the link statement and tried 2 different things:

a. removing it completely.
b. changing it to a closing tag like this:

          </link>

Neither made any difference so I left it like it was.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

jjamjatraAuthor Commented:
Reply to jitganguly:

Please tell me where do you detect "faulty JS"? Neither IE complains about any Javascript problem nor does Firefox.

I cannot take off what you suggest (perhaps I need to repackage it some way). Here is the top snippet from my default.asp on the server side:

<!--#include file="Scripts/Server_Main.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><title><%= encode(title) %></title>
<script type="text/javascript" language="javascript">
    var stateOfMapserver = "<% = Server.URLEncode(state) %>";
</script>
<script type='text/javascript' src="Scripts/Manifold_AJAX.js" ></script>
<!-- content scripting -->
<script type="text/javascript" language="javascript">
<!--
var opera = (navigator.userAgent.indexOf("Opera") >= 0)? true: false;
var ie = (document.all && !opera)? true: false;
var nn4 = (document.layers)? true: false;
var bandH = <%= cymap %>;
var bandW = <%= cxmap %>;
var bandX = -1;
var bandXOffset = 0;
var bandY = -1;
var bandYOffset = 0;
</script>
<script type='text/javascript' src="Scripts/Client_Functions.js" ></script>
<link rel="stylesheet" type="text/css" href="default.css"></>
</head>
0
jitgangulyCommented:
>>Please tell me where do you detect "faulty JS"?
 Here in this
var stateOfMapserver = "layers%3D0%2C1%2C2%24viewport%3D2%2E1723538776377947e%2B002%2C2%2E1723538776377947e%2B002%2C1%2E1460654220948415e%2B005%2C1%2E0504115842780631e%2B005%24";

Open the page in IE where it does not show anything. Do a view source and save teh notepad in html file, take off those JS scripts and open teh html in IE, you can see the page
0
jjamjatraAuthor Commented:
Dear jitqanquly:

I understand what you are saying. Sure you can strip these lines out and get something to come up in the browser but it has been stripped of all its important content.

Did you attempt to browse the URL with Firefox ? If yes, you should be able to see the image of a map being rendered. Mouseover a polygon for a zipcode and you should see a display of info on the right side of the page.

There are no Javascript errors anywhere in any browser as far as I can see. Please tell me where you see any problem Javascript. Thank you.
0
jitgangulyCommented:
Understand you don't want to strip that out. :-)

I just wanted to point out where the error is, I guess IE is unable to parse it.

@ work now, can't use firefox. May be will try @ home.

What if you take off the Server.URLCode
0
jjamjatraAuthor Commented:
Thanks .... but I still do not see any error with IE.

Can you paste anything about the error you see in IE ? For example, syntax error, object expected, etc. Anything about line number, etc.

I get nothing when I try with IE....just a blank page (yet filled with HTML and Javascript when doing VIEW SOURCE)....but no errors.
0
jitgangulyCommented:
I get the same. No error nothig, but just a blank page.

Lets take one at a time

What is this code doing

<%= encode(title) %>

Can I see the code ?

I used to work for a big bank there I had to code separately for NS and IE :-)
0
kevp75Commented:
works great in FF, Netscape, no go in IE6, IE 7, and Opera.

I wonder if there is something in Client_Functions.js that is throwing it off for IE and Opera...
can you post it?
0
kevp75Commented:
that button you have on top..the 'Return To MortgageDataWeb', can you see if that is coded correctly.  Clicking it does nothing but puts an 'undefined' in the address bar...
0
jjamjatraAuthor Commented:
This reply to kevp75 especially but also jitqanquly...

You should be able to view Client_Functions.js at:

http://gis.cbmiweb.com/MDWmaps/Scripts/Client_Functions.js 

also:

http://gis.cbmiweb.com/MDWmaps/Scripts/Manifold_AJAX.js

But more importantly, let me ask you this:

IF there is any client-side Javascript that IE does not like, shouldn't it complain about it in some way? I have visited IE/Tools/Internet Options/Advanced and I have checked "Display a notification about every script error".

During development, whenever I had Javascript errors, IE would definitely complain about it .

Now nothing.....I still would like to know where exactly you see any Javascript error on the client side??
0
jjamjatraAuthor Commented:
Reply to
kevp75:
that button you have on top..the 'Return To MortgageDataWeb', can you see if that is coded correctly.  Clicking it does nothing but puts an 'undefined' in the address bar...

Yes, I know. This works when linked from another site. When browsing MDWMaps independently, this button will have no return URL. That may behave badly in Firefox when browsing standalone but that is not the problem....I am getting nothing at all with IE.
0
jjamjatraAuthor Commented:
Reply to jitqanquly question above:

You asked about

This is the server side Javascript function declaration:

// return "&#160;" for empty text and use server encoder otherwise
function encode(text) {
      return (text != "")? Server.HTMLEncode(text): "&#160;";
}

Here is where you saw it invoked in default.asp:

<head><title><%= encode(title) %></title>


0
jjamjatraAuthor Commented:
Did you guys give up on me?
0
jjamjatraAuthor Commented:
Never mind. I found out the answer with help from someone on the ASP.NET forum on Microsoft where I posted the question for free and got an answer in 15 minutes.  

I was missing a closing comment

-->

in the inline script block in default.asp. Adding the closing --> fixed the problem completely. Please close this .
0
Computer101Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.