Hello,<br><br>I know how to handle this with jQuery, See the following method from the jQuery functional tests:<br><br>renderTimeoutOn: html<br> "Warn the user if an error occurs during an AJAX action (mostly this is a session timeout) and refreshes the current page (causing the default error/expiry handling to kick in)."<br>
<br> html document addLoadScript: (html jQuery ajaxSetup<br> onError: (html javascript<br> alert: 'The session has expired.';<br> refresh)).<br> <br> "An alternative implementation is to trigger a request now and then so that the session never expires:"<br>
"html document addLoadScript: (html jQuery ajax<br> callback: [ 'the session is active' ]; <br> interval: 60 seconds)"<br><br>There must be something similar for Scriptaculous.<br><br>Jan.<br>
<br><br><br><div class="gmail_quote">On Wed, Jun 16, 2010 at 8:51 PM, Bob Arning <span dir="ltr"><<a href="mailto:arning@charm.net">arning@charm.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I've got a problem with expired sessions. If I have a component like the one below and the session expires, then clicking on the red box does nothing. No error message, no redisplay, nothing that the user can see. What's a good way to let the user know what's going on here?<br>
<br>
TIA,<br>
Bob<br>
<br>
'From PharoCore1.0rc1 of 19 October 2009 [Latest update: #10505] on 16 June 2010 at 1:52:05 pm'!<br>
WAComponent subclass: #BobTestComponent<br>
instanceVariableNames: ''<br>
classVariableNames: ''<br>
poolDictionaries: ''<br>
category: 'Bob001'!<br>
<br>
!BobTestComponent methodsFor: 'as yet unclassified' stamp: 'Bob 6/16/2010 13:51'!<br>
renderContentOn: html<br>
<br>
| div |<br>
<br>
(div := html div)<br>
style: 'height: 44px; width: 65px; background-color: red;';<br>
id: 'bob001';<br>
onClick: (html scriptaculous evaluator<br>
callback: [ :script |<br>
self replaceIt: script<br>
];<br>
return: false);<br>
with: [html text: 'aaa']<br>
! !<br>
<br>
!BobTestComponent methodsFor: 'as yet unclassified' stamp: 'Bob 6/16/2010 13:33'!<br>
replaceIt: script<br>
<br>
script element<br>
id: 'bob001';<br>
replace: [ :html |<br>
html div<br>
style: 'height: 44px; width: 65px; background-color: green;';<br>
id: 'bob001';<br>
with: [html text: 'two']<br>
].<br>
! !<br>
<br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jan van de Sandt<br>gsm: +31 (0)6 3039 5998<br>