View Full Version : Stopping infinite loop
Crash1hd
05-12-2003, 11:21 PM
How Do I stop the infinite loop that this causes
onResize=location.reload()
?
chrismiceli
05-12-2003, 11:47 PM
well, to stop an infinite loop, you would use this, like this
for(x=1;x>2;x=1) {
alert("hi");
break;
}
I don't know what infinite loop that you are talking about, that wouldn't created an infinite loop, as long as the load wasn't resizing the page.
Crash1hd
05-12-2003, 11:54 PM
you think it wouldnt but for what ever reason useing netscape 4 when i resize the page it should reload the page only once but it continously reloads??? the reason i need to do this is because for whatever reason when I put the following code into my page
<LINK href="/Scripts/style.css" rel="stylesheet" type="text/css">
it works fine onload and on reload but when i resize the page netscape doesnt reload and the css file vanishes like it was never loaded but if I hit reload it works again????
oh did i mention that the css link file is inside an include file it seems to work though? so thats why I need a reload feature on resize of netscape browsers all the rest are fine IE opera mozilla ext...
also I forgot to mention it does work fine when i goto the main page http://header.domain1.com but the actual site is http://www.domain2.com but that is forwarded to the first one masked (which is the only way I could have to domains on one pc and one IP address unless someone knows of a way I have 2 IP address but my router only accepts one? by doing that puts the page into a frame
cheesebagpipe
05-13-2003, 12:04 AM
Not encouraging you to code for this relic:
http://www.webreference.com/dhtml/diner/resize/
Crash1hd
05-13-2003, 02:24 AM
Well I found the culpret to my problem
<% Response.Expires= -100000 %>
for somereason it removes the css file or something??
which kinda sucks cause that means that people can log in then after logging out and then click back they can view the info that should be privilidged to the valed user only say a kid grabbing his folks credit card number! or something like that, however I do realize that they cant change anything once logged out but still lol figures!
It seems to be that
<% Response.Expires= 0%>
works fine yet for some reason it still doesnt expire the page fast enough!
Crash1hd
05-13-2003, 03:53 AM
anyone have anythoughts on how to make that work so that I can use the
<% Response.Expires= -1%>
instead of
<% Response.Expires= 0%>
so that the pages actually expire but when I resize the page it would still look normal!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.