views:

386

answers:

2

To clarify the weird title. I am trying to use figure out if there is a way, either by javascript or some other means, when the user is presented with a standard text keyboard to listen for the keyboards action like 'GO' or 'Search'. This button is in the bottom right corner of the keyboard used in Safari on the iPhone. This is NOT a Native APP, but rather a web-app.

I am using jQtouch but can tackle any Javascript. I just need to know if an event is fired specific for the browser or what.

Currently the text box taking input looks like this in code:

<input id="FuzzySearch" name="FuzzySearch" type="text" placeholder="<%= GetFuzzyValue() %>" />

Any help would be greatly appreciative, I would think this would be a standard feature from a usability standpoint. Users will end up clicking the button they are used to and for it to do nothing.

+1  A: 

I'm not familiar with the jQtouch framework, but normally the GO button submits the form.

So you would have:

<form ... onsubmit="doSomething(); return false;">
 <input id="FuzzySearch" ... />
</form>
Joel L
Yes, normally GO will submit the form the input is contained in. jQtouch was blocking the submit with an experimental variable. Updated the value and everything works as expected.
Kyle LeNeau
A: 

I think I found the issue, when using the latest version of jQtouch. There is an option labeled useFastTouch. This is marked as experimental in the code. I set the value to false on initialization and the keyboard is now submitted the form as expected. This will be marked as and issue with jQtouch.

Kyle LeNeau