client timer??

G

GaryB

I want to put a control on a web page that will trigger an autopostback
event in a period of time, say 10 seconds. Is there any such thing as a
client timer? Like a button that will push itself 10 seconds after it is
created.
Thanks,
G
 
S

Steven Cheng[MSFT]

Hi Gary,

From your description, you are wanting to build a web component which can
make the page post back itself once every serveral seconds,yes?

There does exist some means to do such task, you can try the following
means:
1. The standard html <meta> tag can help set to make a page refresh it self
constantly by a certain period of time.

#HTML META refresh tag
http://webdesign.about.com/cs/metatags/a/aa080300a.htm

2. The "window.setTimeout" and "window.setInterval" can help call a
function after a certain period or repeatedly by a period. That is
something like a clienttimer, you may have a look at the following links:

#Javascript window.setTimeout
http://www.devguru.com/Technologies/ecmascript/quickref/win_settimeout.html

#Javascript window.setInterval
http://www.devguru.com/Technologies/ecmascript/quickref/win_setInterval.html

Hope helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top