Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>Refresh with a query string

Refresh with a query string

otisb
06-28-2004, 08:06 PM
I have a page that needs to auto refesh. The issue is that the user's id value is in the url ie: http://mysite.com?userid=007

What i need is to grab that value for the userid and apply that the javascript refresh function so the user does not get logged out. If you can please show me a sample of the javascript

Thank you
Otis

Willy Duitt
06-28-2004, 08:39 PM
Lets see your refresh function....

glenngv
06-29-2004, 04:56 AM
Using location.reload() won't require you to grab the querystring as it refreshes the page as if you click Refresh or Reload button.

setTimeout("location.reload(true)", 60000);

But if the page came from a POST request, a prompt will be displayed asking to reload the page or not. If that's the case, use this instead:

setTimeout("location.replace(location.href)", 60000);


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

wanting search results to open in target frame
How do I get information for selected item of a combo
HTA and frames
Only open new location 1st time.
AIM Auto Change Away Message
disabling right clicks
Auto Preview of Image after selected.

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics