I thought I was fighting a PHP problem, so I asked about this on a PHP
list, but they felt it was a Javascript problem, so I'm reposting a
bit of the debate here. Could this Javascript, below, possibly trigger
a redirect in Netscape, and send the browser to a file called "0".
Cause what is happening is on load, in Netscape, the page redirects to
something like:
--- In php-list@yahoogroup s.com, Bob Sawyer <bobsawyerdotco m@y...>
wrote[color=blue]
> I don't think it's anything in the PHP - I think it's
> your javascrpt, particularly this function:
>
> ------------------
> function scrolltop() {
> location = document.body.s crollTop;
> if (location == 0) location =
> document.docume ntElement.scrol lTop;
> if (location == 0) location = window.pageYOff set;
> document.getEle mentById('scrol lmenu').style.p ixelTop
> = location;
> gTimer1 = window.setTimeo ut('scrolltop() ',1000);
> }
> ------------------
>
> I'm terrible with javascrpt but I think that's where
> your "0" is coming from...[/color]
Interesting thought. But I don't set the location to 0, I only test to
see if the scroll top is at 0 pixels. And I'm pretty sure I had this
function working in Netscape. And at no point do I reference the href.
So it's unlikely. But it is worth looking at. I'll repost all this to
a Javascript list.
list, but they felt it was a Javascript problem, so I'm reposting a
bit of the debate here. Could this Javascript, below, possibly trigger
a redirect in Netscape, and send the browser to a file called "0".
Cause what is happening is on load, in Netscape, the page redirects to
something like:
--- In php-list@yahoogroup s.com, Bob Sawyer <bobsawyerdotco m@y...>
wrote[color=blue]
> I don't think it's anything in the PHP - I think it's
> your javascrpt, particularly this function:
>
> ------------------
> function scrolltop() {
> location = document.body.s crollTop;
> if (location == 0) location =
> document.docume ntElement.scrol lTop;
> if (location == 0) location = window.pageYOff set;
> document.getEle mentById('scrol lmenu').style.p ixelTop
> = location;
> gTimer1 = window.setTimeo ut('scrolltop() ',1000);
> }
> ------------------
>
> I'm terrible with javascrpt but I think that's where
> your "0" is coming from...[/color]
Interesting thought. But I don't set the location to 0, I only test to
see if the scroll top is at 0 pixels. And I'm pretty sure I had this
function working in Netscape. And at no point do I reference the href.
So it's unlikely. But it is worth looking at. I'll repost all this to
a Javascript list.
Comment