The question is then how do I define a default submit button?
I'm looking through the code, but I can't seem to find the option.

Is there one now?

Thanks,
-Aaron

Ian Bicking wrote:

>On Tue, 2002-02-19 at 14:24, Tim Roberts wrote:
>
>>Aaron Held wrote:
>>
>>>>I've take advantage of tying functions to different submit buttons on a 
>>>>form, but is there any way to set a 'default' action that will fire if 
>>>>the user submits the form via the enter key rather then clicking the 
>>>>correct button?
>>>>
>>>>I can setup a javascript handler to intercept the enter key, but is 
>>>>there a server side method?
>>>>
>>Ian Bicking <[EMAIL PROTECTED]> wrote:
>>
>>>No, there isn't.  There should be.
>>>
>>Well, it will ALWAYS take client-side Javascript code to catch the enter key 
>>and process it in a particular way.  There isn't any way for straight server-
>>side code to distinguish between an Enter key submission and a submit button 
>>press.  I think what you're saying "there should be a way for server-side 
>>methods to ask for this Javascript to be included." 
>>
>>Right?
>>
>
>No, rather when no submit button field was found, a default submit
>button should be assumed.  IE and Mozilla will submit a form when an
>enter is hit under certain circumstances.  I believe this will lead to
>the form being submitted without any named submit button being sent
>(yes?) -- in this case, FFK should act as though the default submit
>button was hit.
>
>  Ian
>
>
>
>_______________________________________________
>Webware-discuss mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/webware-discuss
>





_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to