Set Focus on a textbox in a mobile web app
Hi,
I'm in a bit of a bind. I'm programming a mobile module for our production tracking system. We're using handheld Pocket PC scanners in the warehouse. The way I can program it is that they click on a textbox and then scan the barcode. I don't want them to have to click the textbox though. How can I set focus to a textbox in a mobile web app?
JP
Re: Set Focus on a textbox in a mobile web app
I may be completely off on this one, because you are talking web, but there is a focus() method of textboxes that will set focus to that box.
Re: Set Focus on a textbox in a mobile web app
VB Code:
'set the focus to the serial number field
Sub Set_Focus()
Dim strScript As String
strScript = "<script language=javascript> document.all('txtSerialNo').focus() </script>"
RegisterStartupScript("focus", strScript)
End Sub
this works in normal asp.net