Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 26th, 2004, 03:33 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default Refresh

i need refresh function in javascript

surendran
(Anything is Possible)
__________________
surendran
(Anything is Possible)
http://www.suren.info
http://ssuren.spaces.msn.com
 
Old July 26th, 2004, 05:02 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

You can use following:

window.location.reload()
window.location.replace('filename')

Om Prakash
 
Old July 27th, 2004, 12:01 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

thanks Om Prakash,
but i need with a time period

surendran
(Anything is Possible)
 
Old July 27th, 2004, 03:23 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can use Om Prakash's answer in combination with the setTimeout method, this link will show you how...

http://www.devguru.com/Technologies/...ettimeout.html

HTH,

Chris

 
Old July 31st, 2004, 01:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

if u wanna do it frequently: put it in ur <head>
Code:
<meta http-equiv="refresh" content="10">
Always:),
Hovik Melkomian.
 
Old August 3rd, 2004, 04:05 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi melvik,
I don't want meta refresh, i want to use javascript.
ChrisScott your link is not working


surendran
(Anything is Possible)
 
Old August 3rd, 2004, 04:29 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Surendran,

The link works fine for me.

Anyhow, to refresh a page after 5 seconds, you could use:

Code:
window.setTimeout("window.location.reload();", 5000);
HTH,

Chris


 
Old August 3rd, 2004, 05:31 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

thanks ChrisScott,
It's working fine..

surendran
(Anything is Possible)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh GridView Using Refresh Button msbsam ASP.NET 2.0 Professional 0 December 6th, 2006 05:57 AM
refresh crmpicco HTML Code Clinic 7 January 31st, 2005 09:43 PM
refresh marclena Javascript 4 March 24th, 2004 10:29 AM
refresh kilika VBScript 0 September 16th, 2003 01:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.