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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem getting the enter keydown event for PocketPc emulator.

Status
Not open for further replies.

gaya

Technical User
Apr 2, 2007
4
AM
Hello Dear all.
In the application developed in ASP.net 1.1 (mobile version) we have a problem with getting the enter keydown event (the form havn't been submitted).
For example on one screen we have only one textbox and one submit button, when entering text on the textbox and pressing the enter key the form is submitted(It is normal).
But when we have multiple textboxes(for example two), when we enter data in the first textbox and press enter key the form isn't submitted. The form is being submitted(by enter key) in case when the focus is on the submit button.
We need to submit the form by enter key in spite of the focus is on submit button or not. We have tested the application on IE, and it works properly, the problem occures when working on PocketPC emulator.
If anyone could help me i would be very appreciative!
Thank you in advance.
 
... the problem occures when working on PocketPC emulator...
Umm... so do you expect the target audience of your app to use the PoketPC emulator?! I mean... why would they not use a real PocketPC?

The solution, if this code was something I would expect to run in a common browser like IE or Firefox, could be to watch the keydown event on the text inputs - if the key pressed is the Enter key then submit the form, otherwise do nothing.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
We also run this application on the real pocket pc. but we need this work on both pocketpc and emulator. Pocket pc works properly, but emulator not. And i would like to know if someone knows what's the difference, maybe emulator doesn't support the keydown events or what can i use in spite of that event?
Thank you.
 
me said:
The solution, if this code was something I would expect to run in a common browser like IE or Firefox, could be to watch the keydown event on the text inputs - if the key pressed is the Enter key then submit the form, otherwise do nothing.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
I think the emulator doesn't recognise the keydown event at all. T have tried the way suggested, but still no results. Everything is fine when using IE or Firefox, but not emulator. Waht's the reason and the solution, maybe i could use some other event?
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top