[Seaside] Ajax and error management
thierry.thelliez.tech at gmail.com
Fri May 13 20:50:15 UTC 2011
While I successfully created my first JQuery modal dialog, I
encountered two issues regarding exception management:
===1=== At one point I had a bug in my code (I know, this never
happens ;-). The component rendering the dialog did not seem to
respond to user input. Inspecting with Firebug, I found that the
server (GLASS) was returning a 505. But the debugger (Seaside
Walkback html page) was not displayed. Now, I understand that this is
do you do that in Seaside?
In other words, the code below works. But do you have any code
example on how to manage exception should my 'myComponent' not behave?
id: (html nextId);
script: (html jQuery new dialog
onClick: (( html jQuery id: html lastId) dialog open );
===2=== Likewise, I got a 403 when leaving my first calling page
opened for a while. I mean that attempting to open the above dialog
does not work anymore after a time that I think is the session
expiration. I guess that the link under 'Test' calls
that is expired. (BTW, I am using Seaside 3.0 and GLASS).
Again, I would like to be able to intercept such exception/error and
provide something more user friendly. Right now the dialog opens a
More information about the seaside