|
-
May 3rd, 2005, 07:01 AM
#1
Thread Starter
New Member
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
-
May 3rd, 2005, 12:52 PM
#2
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.
My usual boring signature: Nothing
 
-
May 4th, 2005, 06:24 AM
#3
Fanatic Member
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
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|