Help with ASP

6 views
Skip to first unread message

Stevebo

unread,
Dec 29, 2009, 7:52:58 PM12/29/09
to JustHumans
Hi Anders,

My ASP form currently has a button with an OnClick() event which does
some housekeeping before transferring the form to another page.

Do you have any examples of how JustHumans works in ASP?

Thanks,
Steve

Anders Brownworth

unread,
Dec 29, 2009, 8:06:29 PM12/29/09
to justh...@googlegroups.com
The onClick event is trapped by JustHumans but you can be notified before a form is submitted so you can do form verification and housekeeping. (including denying the post) You should do your housekeeping in the onSubmit event of your form instead of the onClick, like this:
<form onSubmit="return( isFormComplete( this ) )">
To see the complete working example, see:


JustHumans will do what you expect and only proceed with the post if the code called at the onSubmit event returns "true".

-Anders


--

You received this message because you are subscribed to the Google Groups "JustHumans" group.
To post to this group, send email to justh...@googlegroups.com.
To unsubscribe from this group, send email to justhumans+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/justhumans?hl=en.





--
-Anders
-----------------------------------------------------------
Anders Brownworth
http://www.anders.com/
ande...@gmail.com
Reply all
Reply to author
Forward
0 new messages