Forum Moderators: open

Message Too Old, No Replies

JS & Mac IE 5.1

         

ControlZ

5:38 am on Sep 18, 2004 (gmt 0)

10+ Year Member



Discovered this on a site developed on a PC using Dreamweaver. After looking at the site on a Mac ruuning IE 5.1, I noticed the vertical height of the page scrolls for much longer then the actual height set in the html. Thus leaving a ton of white space below where the actual page/table ends.

By process of elimination, I discovered when I removed the following piece of JS from the html, this problem disappeared:
<script language="JavaScript1.2" src="mm_menu.js"></script>

FYI-I removed everything from the html so the only things left was a one row table and a body background color. Even when only these minimal elements, the vertical scroll problem still existing until I deleted the JS shown above.

I tried placing this script inside the <head> but it made no difference.

Thanks!

Bernard Marx

11:16 am on Sep 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's hard to tell. That's for certain.
Some may disagree, but my guess is that this problem is related to the contents of
mm_menu.js
.

DrDoc

4:27 pm on Sep 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yeah, I'd say so too... There must be something in the script that causes this to happen.

pageoneresults

5:05 pm on Sep 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



A little OT, the language attribute is deprecated. This...

<script language="JavaScript1.2" src="mm_menu.js"></script>

...should be...

<script type="text/javascript" src="mm_menu.js"></script>

P.S. I'm surprised that is the only issue you are faced with in IE5.1 on the Mac. That browser is just as bad as NN4.x. ;)

ControlZ

5:24 pm on Sep 18, 2004 (gmt 0)

10+ Year Member



Yea I fixed the incorrect JS code. Checked both the css & html and both validated, with only a few minor errors in the html.

I discovered when I compressed the entire source code, using Absolute HTML Compressor, the problem disappeared. For some reason MAC IE 51. was viewing the lengthy JS as extra blank space or <br>.