Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reload Page Once

0 views
Skip to first unread message

Mark Kuhn

unread,
Sep 27, 1999, 3:00:00 AM9/27/99
to
I have an IE 5 bug that forgets the position of a particular layer when
using history.back or when the page is loaded from the cache. The layer
is rendered at to top left corner of the page. Usually, clicking reload
fixes the page. So what I've done is detected the layer position and if
top = 0, I have the page reload. The only thing is I'm afraid that this
could get caught in a loop and continuously reload the page.

Is it possible to count the reload of the page only once and then stop
it.


Thanks,
Mark


Blacklight

unread,
Sep 27, 1999, 3:00:00 AM9/27/99
to
heres how i would do it

<body onload="checkreload()">
<script>
function checkreload(){
var aurl=location.href
checker=false
for(i=0;i!=aurl.length;i++){
if(aurl.charAt(i)=="?"){checker=true}
}
if(!checker){window.location.replace(aurl+"?reload")}
}
</script>

--


¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Blacklight,
http://members.tripod.com/polymathic/
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Mark Kuhn <kuhn...@pilot.msu.edu> wrote in message
news:37EF95F7...@pilot.msu.edu...

Mark Kuhn

unread,
Sep 29, 1999, 3:00:00 AM9/29/99
to
Thanks for the help!

0 new messages