[UMN_MAPSERVER-USERS] [OT] Question on javascript

Richard Greenwood richard.greenwood at GMAIL.COM
Sun May 29 20:02:28 EDT 2005


Stephen Woodbridge <woodbri <at> SWOODBRIDGE.COM> writes:

> This is a little of topic, but it is related to building a web interface
> for mapserver.
>
> I have form in html that I do NOT want to submit.

> <form onsubmit="nosubmit();">

I think you need a return in there, e.g.
   <form onsubmit="return nosubmit();">
The joy's of JavaScript...
Alos check the case of onSubmit, since it's HTML it may not matter.
And note that the onSubmit function doesn't get called it you do a form.submit()

Rich



More information about the mapserver-users mailing list