[UMN_MAPSERVER-USERS] [OT] Question on javascript
Stephen Woodbridge
woodbri at SWOODBRIDGE.COM
Sun May 29 17:55:23 PDT 2005
Richard and Bart,
Thank you! you are right. I did need the onsubmit="return nosubmit();"
Bart mentioned that, but he also mentioned that he turned the button
into a submit and I missed that other subtle little point, so I
appreciate your follow up also.
Thanks a bunch,
-Steve
Richard Greenwood wrote:
> 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