On Wed, May 27, 2009 at 9:46 PM, Vincent Borghi
<[email protected]> wrote:
> Thanks for the prompt suggestion, but it does not work.
> With this code, both Enter key and submit button have the same bad
> behavior: they just run a GET of the same current URL ("searchform"),
> without passing parameters...
>
> Other idea?
Had the same problem, this worked for me:
<form id="testform" onsubmit="return false">
Search for: <INPUT type="text" id='searchfor' value="" onchange="ajax('.....
That way, the form does not submit when enter is pressed, but onchange
triggers the ajax function and you get what you want
Horst
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---