Actually my problem is related to the way that FFK handles actions. I have a form with four submit buttons, each with different values and each is tied to a different method. The problem is that if NONE of the buttons are pressed then FFK never calls any of the four methods.
It is a search form and there are buttons for 'begin search', 'clear form', 'save search', and 'load search'. I want the user to be able to hit ENTER and I want FFK to assume that 'begin search' was pressed. So the javascript fix is to add the something like btnSearch=Begin Search the the request header. Thanks, -Aaron 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? > >-- >- Tim Roberts, [EMAIL PROTECTED] > Providenza & Boekelheide, Inc. > > > >_______________________________________________ >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
