Mobile Safari - Input field submit button - iphone

I notice when you go to google.com for example, the input field keyboard has a "submit" button as opposed to the original "return" button.
How do I turn on that feature?
I tried type=search but I still see the return button.
Thanks,
Tee

It actually works.
Need to have the form tag, I initially only had the input field.

Related

Setting Widget Focus in Gtkada

I'm trying to create a simple test program in Gtkada to bring up a Dialog box upon leaving a specific textbox. I have managed this part, but am having problems resetting the focus back to the original textbox when the Dialog's 'Ok' button is pressed.
The general idea is that the user enters something into a textbox and when they click/tab out of the box (focus out event), some simple Alphanumeric validation is done. If the validation fails, the user is warned with a Dialog, and focus is returned to the textbox they entered erroneous data into.
All I am after is a simple example of how to set the focus back to a textbox when you close the Dialog box which clicking out of the textbox originally called. In Gtkada... I'm using version 2.2 of Gtkada. I can't change the version of Gtkada, or use a different program or language!
Much obliged!
Tim
The most elegant solution, GUI-wise, is to do the validation on a leave_event on each input field, and if that fails display an error message (in red or some such) next to the field. But do not display a dialog or force the focus to a specific field, that would interfere with what the user is trying to do (imagine: I enter an incorrect email address, press tab, get the dialog which I do not read (like most users), start typing my name for the next field, but since the focus went back to the email address, I have no overridden that one and lost my previous input).
If you still want to grab the focus, Gtk.Widget.Grab_Focus is the procedure you want.

Mobile Safari submit with enter key

I am using an iPad with a bluetooth keyboard and am having some troubles. I basically have a website that after tapping search, pops up with a modal. The modal contains a summary of information & two buttons - a cancel and a print. My hope is to have the "Enter" key mean the user clicked on the "Print" button. I've tried going the javascript route with click triggers and such, and I've also tried making it into a form with a submit button but mobile safari likes neither. It seems like it requires that I touch the screen again before pressing enter to work. Any ideas would be greatly appreciated..

Input submit button value disappears when clicked in IE9

I'm running into a weird issue with submit buttons in IE9. When the "Continue" or "Back" input is clicked, the value disappears.
I don't think you should be putting an onclick event on a submit input. A better way to do it would be put an onsubmit on the form and put a javascript function in it which dictates the action of the form depending on the value of the submit button value
Update: The issue ended up being a js conflict.

iPhone Go button Does not apper if textarea is the last input

I have this weird issue with a form on one of my sites. Form have 2 input fields a text input and a textarea under it. Submit button at the bottom and it is inout type sumit.
When I type in text input "GO" button appears on the keyboard, but, when typing in textarea it turns to "return" button.
If i change location of inputs so that text input is the last Go button appears as usually. as I fill text are first.
Is it possible to get Go button appear while typing in textarea?
Go to your laptop or desktop and click a textarea. Pressing the enter button does not submit the form.
The answer to your question is therefore simple: a textarea is a multiline input field which requires a return button, leaving no space for the go button. The answer is no. Use a normal input instead.

AutoComplete does not save when there's a postback before Submit

I have a very simple asp.net form.
a text box,
a dropdownlist with autopostback,
a submit button
now if i type in some value into the textbox
and then select an item in the dropdown which causes a page postback.
then click on submit button
the value in the text box does not get saved into the autocomplete data store.
if i do the opposite.
select an item from the dropdown which will cause a page postback.
type in some values in the textbox.
click submit.
the value is saved for the autocomplete.
I think this may have something to do with the page life cycle and the viewstate. but how do i get around this issue? I'm using IE8.
I have tried the AutoCompleteSaveForm command. but it does not work if there's a postback immediately after the execution of it.
Use this for IE:
if($.browser.msie){window.external.AutoCompleteSaveForm(FormName)};
It does not work for Firefox and I'm trying to find the answer for that....