Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programming with Pocket PC 2003 1

Status
Not open for further replies.

RITE1

IS-IT--Management
Oct 25, 2003
91
US
Hi all,

I have been working on an interactive webpage (in php- server side) to be used with a palm using Windows Pocket PC 2003 and am having a few problems.

The webpage interacts with our database and the palms have been outfitted with barcode scanners so that we can do inventory and such.

Problem is that the item code entry field does not load on the webpage as the active field (its not highlighted in blue) so before a person scans an item, they need to touch it with a stylus or use the down button to get onto it. If they don’t the information from the scanner gets entered in the address bar on internet explorer.

I have had a few realizations:

1st, I tried programming the barcode scanner to tab before it scans as to jump to the field. It works only if you came from the login page though, if you came from another screen the tab no longer jumps to the item code entry field, it jumps to another button so no go.

2nd, when using the down/up button on the side of the palm to find the field, once it finds the item code data entry field (as its the only data entry form on the page) it can up/down off it like a tab would.

Therefore, if I could find a way to program a macro (or something?) on the page to execute a series of down buttons when the page first loads it would find the field and stay there. Then when a person scans the item code entry field would be selected and everything would be happy.

I have heard of people doing this with java script but I don’t know anything about it and I’m not sure how windows pocket pc works with client side programming langs.

If anyone can tell me how to do this or has any other suggestions, they would be greatly appreciated!!!! THANKS.
 
You say your are using a palm with WM2003. What device are you using exactly?

Have you tried to set focus to the bar code field when the web page opens?

Dave
 
Toshiba e755 - eventually we will be using del x3's I think.

Im not sure how to set the focus to a feild, I though it was for indidual windows. And I thought it was a java script thing and I didnt think java script worked on palms....

Someone straghten me out... :)
 
Thanks for the reply glohamar

Tried this for focus

<body onLoad=&quot;self.focus();document.form1.textfield.focus()&quot;>
<form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;&quot;>
<input type=&quot;text&quot; name=&quot;textfield&quot;>
</form>

and my partner said they tried using tab index

neither worked

Any more suggestions?
 
I have a couple of items to hopefully help. I did some searching, both brain and the net, and I have found the following...

Instead of using textfield.focus in your code try textarea. Textarea is geared more toward the Pocket Internet Explorer. Reference the following link...

Also, check out the following thread at
If neither one of these works, due to the fact that PIE does not support JScript, I do not think there will be an answer.

Let me know how these work out.

Dave
 
The second link contained information that worked!!!!

Thanks so much Glohamar!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top