cancel
Showing results for 
Search instead for 
Did you mean: 

how to re-start htmlb timer?

Former Member
0 Kudos

Hi

i have the following code in my jsp to start a timer that executes autoSave after 10 minutes.


<hbj:timer id="timeOut"
	 serverEventName="autoSave"
	 timeOut="600000" />

Is there any way to re-start this timer everytime a user action is performed?

I want to re-start the timer even if the user moves his/her mouse / clicks anywhere on the screen.

Can anybody help?

thanks in advance

Anton Kruse

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

used javascript timer instead.

Former Member
0 Kudos

Hi,

I think you can use clientEvent to start the timer on any event.

where 'clientEvent' is an attribute of the htmlb timer tag.

thanks

ritu

Message was edited by:

Ritushree Saha

Former Member
0 Kudos

According to the API I cannot use this in conjunction with serverEventName.

what Else can I do? I want to reset the timer whenever the user intereacts with the screen.

Former Member
0 Kudos

If I use the clientEvent of a button for example, how would I actually reference the htmlb timer in javascript to setEnabled = true?

pls show example.

thanks