//flex table opened by JP

Click to See Complete Forum and Search --> : JavaScript Blankscreen in IE


jjinno
07-08-2005, 09:19 PM
I have been busting my **** trying to get a nifty little JavaScript tidbit to work on my site. Basically it shows info from a particular calendar date in a DIV tag upon rollover of that date.

USING MOZILLA FIREFOX (or other equivalent type browser):
My Calendar Page (http://users.wpi.edu/~jjinno/test/yawps/calendar.cgi)

You can see (using the javaScript console) that there are no recorded errors...

USING MS-IE (newest publicly released version):
uh-oh

Now if I simply remove the two script tags from the header, the site shows up, with multiple errors about missing functions...blah blah blah...but at least it is Visible

Here are links to the scripts:
Script 1 - The Rollover buttons and image loading (http://users.wpi.edu/~jjinno/test/yawps/themes/standard/script.js)
Script 2 - The Fun Calendar thing (http://users.wpi.edu/~jjinno/test/yawps/images/imgtrail.js)

Any Ideas?

CompGeek01
07-09-2005, 02:13 AM
Best thing to do in this case is to remove small chunks of code a little at a time. Eventually you can find the cause. I don't have time to go over yours at the moment, but it's what I do at work.

*edit*

Downloading the files and page to my computer and running them from the desktop as a local webpage.... I get bad effects but not nearly as bad as the blank blue screen you get with your hosted page. Odd.

jjinno
07-09-2005, 10:02 PM
I took out the guts of EVERY function, and left them as stubs...(of course I backed everything up first)

So Im thinking "hey if there is a problem in the JS, then this should let me know, cause if I get it to work with stubs, I can fill em in one at a time till the thing bites the big one..."

Well, no luck, stubs fail too.

Im gonna keep chuggin, I just thought I would post an update

CompGeek01
07-09-2005, 10:51 PM
Keep up the good debugging. :t

jjinno
07-09-2005, 10:59 PM
Ok so I discovered th actual problem and it had to do with the HTML...

Aparently the W3C Standard of self-ending tags is not allowed in IE...

So This:
<script language="JavaScript" type="text/JavaScript" src="blah/script.js" />

Had to be changed to:
<script language="JavaScript" type="text/JavaScript" src="blah/script.js"></script>


Everything works fine now. Thanks for the help though.

Figures it would be Microsoft to lag in their "keeping up to date with technology"... :)