Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Timed Java Script Request & Struts?

Musachy Barroso

2007-01-19

Replies:

If you are using S2, you can also use Dojo's Timer:

http://dojotoolkit.org/api/#dojo.lang.timing.Timer

regards
musachy

Peter Neu wrote:
> Hello,
>
>
>
> in one of my endless attempts to fight the evil browser backward button
> mechanism I was thinging about this:
>
>
>
> Can I make a periodic java script (ajax) request to determine when a user
> hit the evil button and tries to work
>
> a page that is not current anymore? Say the user hit the back button and now
> resides on the "wrong" page
>
> I make a hidden ajax request and determine he is in the wrong pace. Then I
> give him a notice and send him back
>
> to the right place.
>
>
>
> Is this possible? How would I make the periodic request?
>
>
>
> Cheers,
>
> Pete
>
>
>
>
>
>
>
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.