Hello,
does anyone know how to refresh a page once when it loads for first time?
Either with javascript or vbscript or anything else.
:confused:
Printable View
Hello,
does anyone know how to refresh a page once when it loads for first time?
Either with javascript or vbscript or anything else.
:confused:
Why? Sounds awfully distracting.
You need cookie to save a setting and then when the user open this page again, it will no refresh for second time.
And for users that don't accept/support cookies, the page will refresh continuously. Sounds like a fantastic plan.
1) Penagate, you don't need to know why I need this. :)
2) Kevin1991, the cookie way works but as penagate said, when someone has cookies disabled, then what?
Anyone else?
People who help as much as penagate dont tend to ask pointless questions.. even if you don't understand what the point of the question, is it is a good idea to answer.
If you can explain "why" (or what you are trying to achieve by refreshing the page), a suitable alternative can be suggested. ;)
I think cookies is the best way, or you can save setting in profile database.
But the user must register first... :ehh:
Quote:
Originally Posted by si_the_geek
ok. Well, I have a personal web site for my software/web hosting company. (www.botonakis.com), when you load the page with mozilla firefox, i doesn't load the images correctly on all pages. After I refresh all the images are ok.
So I need a way to refresh once the page when the browser is mozilla. I have already written a javascript to check the browser but I can't find a way to refresh once.
It works perfectly for me.
No the first page and only with Firefox. With Internet Explorer 6/7 works perfect.
Again: it works perfectly for me. (In Firefox.) I see zero difference after refreshing the page.
Same here, it works fine for me without a refresh. (Fx 2)
I would guess that the problem is with your installation/configuration of Firefox
That's what i am telling you, after the refreshing it's perfect. So I need an automate refresh once script.Quote:
Originally Posted by penagate
si_the_geek: I had the same problem and at 2 internet cafes that I used and some pcs from my company, so it's not the installation or something.
Oh, I think I might see it now. Like this? (Attached.)
Replace all those tables with CSS.
See? I told you!
I will try it and I will reply. Thanks!
what u can do is
1. Make one hidden field and save the session variable in it
2. make one function that check the value of hidden field and upon which submit form
3. on Body's onLoad event call the function that submit form
hope it works