Click to See Complete Forum and Search --> : Problems with Mozilla


moob
01-03-2003, 10:10 AM
I've worked with MSIE so far and now I have BIIIG problems with switching to Mozilla.

question 1 - in IE: document.readyState; in Mozilla: ???
question 2 - in IE: document.body.scrollHeight; in Mozilla: ???

And can somebody tell me PLEASE how to switch off the scrollbars??? WHY CAN'T IT BE THE SAME EVERYWHERE???

Zach Elfers
01-03-2003, 10:53 AM
In IE you could do <body scroll="no">, but I don't know about Mozilla. Unfortunately, browsers are probably never going to be the same in their support. That's what www.w3.org is trying to do; get all the browsers to be the same.

Rick Bull
01-03-2003, 12:09 PM
If you want to turn off scrolling you can use

<body style="overflow: hidden;">

which should work for all browsers. although I would strongly recommend you don't use that as what happens when the user can't see the rest of the page?
Not sure about the other two.

moob
01-03-2003, 01:44 PM
Originally posted by Rick Bull
I would strongly recommend you don't use that as what happens when the user can't see the rest of the page? [/B] And if I don't want the user to see the rest od the page? :) Although IE has a bug: even if there are no scrollbars, when you try to select something on the page, starting from a place which is visible and ending in a place which you don't see, the document simply scrolls.

Stefan
01-04-2003, 03:21 AM
Originally posted by moob
And if I don't want the user to see the rest od the page? :)

But a user with 640x480 res will see a lot less then someone with 1280x1024 res...


Although IE has a bug: even if there are no scrollbars, when you try to select something on the page, starting from a place which is visible and ending in a place which you don't see, the document simply scrolls.


Well don't do that then, ie don't place something "starting from a place which is visible and ending in a place which you don't see".

You could of cource also try to place everything in the <body> inside a <div> and place the overflow hidden in there. Mayby it works better?

moob
01-04-2003, 05:09 AM
OK, thanks, I'll think about that...
But what about the other 2 problems?

Stefan
01-04-2003, 06:18 AM
Originally posted by moob
But what about the other 2 problems?

I don't know very much about IE proprietary code, but if you go here you will find the official webstandards DOM that both IE 5+ as well as Mozilla uses.

http://www.w3.org/DOM/