[OSM-dev] two javascript challenges for enthusiastic hackers

Nick Black nickblack1 at gmail.com
Thu May 17 12:18:09 BST 2007


Many thanks :)

On 5/17/07, Andy Street <mail at andystreet.me.uk> wrote:
>
> On Thu, 17 May 2007 11:43:19 +0100 "Nick Black" <nickblack1 at gmail.com>
> wrote:
>
> > Q1:  How can I stop the form from submitting if the details aren't
> > correct?
>
> Change the onclick in the submit button to the following:
>
>   onclick="return formValidation();"
>
> Then return false from the function whenever you wish to stop the form
> submitting.
>
> Regards,
>
> Andy
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>



-- 
Nick Black
--------------------------------
http://www.blacksworld.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20070517/942de2e0/attachment.html>


More information about the dev mailing list