Re: preInvokeJS in s:submit

2007-05-25 Thread Musachy Barroso
In show case there are, it is quite simple (not AJAX technically, but javascript) dojo.event.topic.subscribe("/topics", function(data, type, event)){ if (type == "before") { //do something //to cancel set event.cancel = true; } }); On 5/25/07, Roger Varley <[EMAIL PROTECTED]> wrot

Re: preInvokeJS in s:submit

2007-05-25 Thread Roger Varley
On 25/05/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: Use "notifyTopics" instead. I've been trying to do this for ages (display a confirmation dialog when the user is about to do something irrevokable) and it never occured to me to use Ajax :-( Is there any example code anywhere? Regards R

Re: preInvokeJS in s:submit

2007-05-25 Thread Musachy Barroso
Use "notifyTopics" instead. musachy On 5/25/07, Pedro Herrera <[EMAIL PROTECTED]> wrote: Hi, I´d like to show a warning message(alert) before erase a record . Is preInvokeJS deprecated ? I have to use : executeScripts="true" ? I need an example to do this ... Thanks -- View this

preInvokeJS in s:submit

2007-05-25 Thread Pedro Herrera
Hi, I´d like to show a warning message(alert) before erase a record . Is preInvokeJS deprecated ? I have to use : executeScripts="true" ? I need an example to do this ... Thanks -- View this message in context: http://www.nabble.com/preInvokeJS-in-s%3Asubmit-tf3815757.html#a10801