jdport at VERITIME.COM
Wed Jun 1 10:28:01 EDT 2005
let me do a little digging... I had this same issue once where I didn't want
the user to submit the form by hitting enter, and to only be able to submit
by pressing the submit button. I found some code that allowed me to
disable submitting from hitting enter in IE, but it wouldn't work for
Mozilla... and it seems that i got around the problem some other way in
mozilla but i can't remember just what i did or what the situation was.
I'll see if I can find it, and if it applies to your situation :)
----- Original Message -----
From: "Stephen Woodbridge" <woodbri at SWOODBRIDGE.COM>
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Saturday, May 28, 2005 2:15 PM
> 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.
> enter text in location and hit [enter], the form starts a submit and
> calls nosubmit() which puts up an alert and then return false; which
> should cancel the submit. But it does the submit anyway :(
> This is really annoying because I figure I'm doing something stupid, but
> I just don't see it.
> Any help would be appreciated.
> -Steve W.
> the html is:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> <title>Submit Test</title>
> function nosubmit()
> return false;
> <form onsubmit="nosubmit();">
> Location: <input type="text" name="address" size="40">
> <input type="button" value="Go" onclick="alert('hello')">
More information about the mapserver-users