Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timer

Status
Not open for further replies.

Peppi

Programmer
Apr 9, 2001
205
CA
Hi,

I'm having a slight problem with the AJAX timer not calling its Tick event. Here's the scenario:

By default, I have the timer's Enabled property set to false on the page, as I don't want the timer to start running right away. I only want the timer to start when a user presses a key in a textbox on my page. I am able to do this in the Javascript onKeyUp event using newTimer._startTimer(). The problem is that the timer's tick event doesn't fire when the timer expires. The page is posting back, but the event isn't executing. I think this is due to the fact that I have the Enabled property set to false. Does anyone know how I can get this to work?

Thx.
 
if your using js to start the timer, but posting back to the server the timer will come back disabled.
either start the timer from the client and don't postback, or enable the timer on the server when you postback.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top