I will admit that Java is over my head for the moment
In my research, I have found that focusing on a field is impossible, but the newest article I found was from last year. I'm just wondering if Apple changed their minds with iOS 5.
The two Javascript examples you gave won't work on any browser, let alone an iPhone, and I'm not sure why you are putting the timeout in there either, as you're calling the code from the onload event, which means the DOM has loaded by then, so there's no need to wait.
Ashley, I put the 'setTimeout' commands because they were the two examples i found that I could understand. I am not understanding the 'onload' statement. I know I'm supposed to put the field name somewhere in the code. I tried replacing the 'autofocus_field', but it doesn't work on mobile Safari either.
Weedpacket, I had dredged up that page in stackoverflow.com. It's over my head. His example doesn't work on my desktop nor my iphone. He doesn't give any code for his web page, and I can't figure out his script from looking at the source code in Safari.
Ashley, I put the 'setTimeout' commands because they were the two examples i found that I could understand. I am not understanding the 'onload' statement. I know I'm supposed to put the field name somewhere in the code. I tried replacing the 'autofocus_field', but it doesn't work on mobile Safari either.
Weedpacket, I had dredged up that page in stackoverflow.com. It's over my head. His example doesn't work on my desktop nor my iphone. He doesn't give any code for his web page, and I can't figure out his script from looking at the source code in Safari.
The onload statement is simply telling the browser that when the page loads, do this, whatever this may be. In your case, put focus on a particular field.
Bookmarks