I would liek to use <script type="text/javascript"> App.Widgets.PopupAuthForm.init(); </script>
How to do it in correct way?
Fotiman
2:03 pm on Nov 19, 2009 (gmt 0)
You want to do this AFTER a form has submitted, or ONSUBMIT? After implies that the form has been successfully sent to the server, which means you'll be working with a new HTTP Request. Onsubmit implies you want to call this when someone clicks on the submit button but before the data has actually been sent to the server. I suspect you want the onsubmit method, in which case you just need to attach your onsubmit handler to the form:
Note, the init method should return either true or false. false will prevent the form from submitting.
toplisek
6:54 pm on Nov 19, 2009 (gmt 0)
Why in real they use App.Widgets.PopupAuthForm.init(); in forms as pop-up window that message is sent?
Is not enough to send with notification on page that form is submitted? Is this double click as I know pop-up has Message is sent and I think you should close window...