The HP t5520 Windows CE based thin client comes with a browser called
'Internet Explorer' - iehp.exe. It appears to have Java script
(Request.Browse r.JavaScript = True). I want to use this browser in
conjunction with a 'keyboard wedge' magnetic card reader (and no keyboard) to
record the arrival of staff and to display information about the employees
jobs for the day. The webform has a textbox that must maintain focus so that
when a magnetic card is swiped, the card details are recorded and the form
submitted. Page_Load has textbox1.Focus which does the job fine in IE7, but
does not work with hpie.exe (Request.Browse r.Type="Mozilla "). I know nothing
about Java script or how .Focus works. Is there any way of fixing this
problem, or is there a Windows CE browser that would make .Focus work?
--
John Austin 6 2223
Try this and let me know what it does: http://www.ben-rush.net/blog/PermaLi...d8c499a&dotnet
If JavaScript is truly enabled, then something like that should work for
you.
--
~~~~~~~~~~~
Ben Rush http://www.ben-rush.net/blog
"John Austin" <Jo*********@no spam.nospamwrot e in message
news:3A******** *************** ***********@mic rosoft.com...
The HP t5520 Windows CE based thin client comes with a browser called
'Internet Explorer' - iehp.exe. It appears to have Java script
(Request.Browse r.JavaScript = True). I want to use this browser in
conjunction with a 'keyboard wedge' magnetic card reader (and no keyboard)
to
record the arrival of staff and to display information about the employees
jobs for the day. The webform has a textbox that must maintain focus so
that
when a magnetic card is swiped, the card details are recorded and the form
submitted. Page_Load has textbox1.Focus which does the job fine in IE7,
but
does not work with hpie.exe (Request.Browse r.Type="Mozilla "). I know
nothing
about Java script or how .Focus works. Is there any way of fixing this
problem, or is there a Windows CE browser that would make .Focus work?
--
John Austin
Hi John,
As Ben has said, you can simply test the setfocus behavior through pure
javascript function call rather than the ASP.NET Page.Setfocus method.
ASP.NET server-side page/control method also emit client-side script to
setfocus. If pure client script also not work, I'm afraid the problem
should be specific to the iehp.exe browser:
#Set Focus to First Input on Web Page http://www.codeproject.com/jscript/FocusFirstInput.asp
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Hi Ben,
Thanks for the help - your sample code works fine. Also pasting the
id="Body" onload="documen t.form1.txtCard ID.focus();"
into my existing page makes it work too.
I know nothing about Java script, so why does your 'onload' work and
Microsoft's
<form id="form1" runat="server" defaultfocus="t xtCardID">
not work?
--
John Austin
"Ben Rush" wrote:
Try this and let me know what it does:
http://www.ben-rush.net/blog/PermaLi...d8c499a&dotnet
If JavaScript is truly enabled, then something like that should work for
you.
--
~~~~~~~~~~~
Ben Rush http://www.ben-rush.net/blog
"John Austin" <Jo*********@no spam.nospamwrot e in message
news:3A******** *************** ***********@mic rosoft.com...
The HP t5520 Windows CE based thin client comes with a browser called
'Internet Explorer' - iehp.exe. It appears to have Java script
(Request.Browse r.JavaScript = True). I want to use this browser in
conjunction with a 'keyboard wedge' magnetic card reader (and no keyboard)
to
record the arrival of staff and to display information about the employees
jobs for the day. The webform has a textbox that must maintain focus so
that
when a magnetic card is swiped, the card details are recorded and the form
submitted. Page_Load has textbox1.Focus which does the job fine in IE7,
but
does not work with hpie.exe (Request.Browse r.Type="Mozilla "). I know
nothing
about Java script or how .Focus works. Is there any way of fixing this
problem, or is there a Windows CE browser that would make .Focus work?
--
John Austin
Hi Ben,
The "defaultfoc us" is an ASP.NET server-side control attribute, the ASP.NET
runtime will render out clientscript (to set focus) according to this
attribute value. However, the rendering will vary according to the client
browser. I think ASP.NET possibly detect the iehp.exe as a non-javascript
enabled browser and doesn't correctly output script to set focus.
<form id="form1" runat="server" defaultfocus="t xtCardID">
You can try checking the source of the output html at client-side to see
whether the ASP.NET has render the same script code as your own custom
script.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Hello Stevan,
Request.Browser .JavaScript = True, so it ought to think that the browser
supports Java script. Can you tell me where I could download a copy of
Microsoft's Internet Explorer for Windows CE? I cant find a download anywhere.
Thanks
--
John Austin
"Steven Cheng[MSFT]" wrote:
Hi Ben,
The "defaultfoc us" is an ASP.NET server-side control attribute, the ASP.NET
runtime will render out clientscript (to set focus) according to this
attribute value. However, the rendering will vary according to the client
browser. I think ASP.NET possibly detect the iehp.exe as a non-javascript
enabled browser and doesn't correctly output script to set focus.
<form id="form1" runat="server" defaultfocus="t xtCardID">
You can try checking the source of the output html at client-side to see
whether the ASP.NET has render the same script code as your own custom
script.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Hi John,
What's the " Internet Explorer for Windows CE" you mean? The exe image of
it? So far for Internet explorer, it seems be installed with the windows
OS rather than a separate package. If you want to get a correct copy to
replace a corrupted one, you can consider copy one from another box with
this IE for Wince installed.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark Carter |
last post by:
Suppose I wanted to combine a thin client written in VB6 with a server
on a remote machine. Since this is the python group, assume for now
that it could be written in python (although VB6 would be a nice
alternative). What technologies would I use?
|
by: Charles Russell |
last post by:
I am setting a three column layout within an existing table. The table
uses previously devloped code so I am force to use it. I have the
following styles defined.
<code><!--Preventative insert so code does not get interpreted by mail
app -->
..c1
{
position:relative;
margin-left:0;
|
by: Benno Bös |
last post by:
If I use the following construct in the frame "main" for a link to an
extern site:
<A HREF="http://www.any.xy" TARGET="extern">
the Browser is creating the window "extern", loading the page
www.any.xy an setting the focus to "extern". But when I go return to
"main" without closing "extern", a click to an other link (e.g.
www.2nd_any.xy) on "main" does not setting the focus to "extern".
|
by: Robert Dell |
last post by:
I have a problem comparing strings in an order form i'm writing. I want
to give a running total at the bottom of the page and it appears to be
working except it doesn't compare correctly (it always adds things up
when you didn't select them) so i only added 2 of the items until I got
it worked out. here's the page source (you can look at it yourself at
http://robertdell.dyndns.org/shifts/
<!DOCTYPE HTML PUBLIC>
<html>
<head>
|
by: bradwiseathome |
last post by:
I focus on controls in a web form like this:
<script language="javascript">
var focusControl = null;
if (document.getElementById)
focusControl = document.getElementById('txtArea1');
else if (document.all)
focusControl = document.all;
if (focusControl && focusControl.focus)
focusControl.focus();
| |
by: TC |
last post by:
Hello,
I am using the script below to open a new window and once opened, redirect to that open window from the original window:
private void btnNewPDFWindow_Click(object sender, System.EventArgs e)
{
string NewPage = "NewPageZoom.aspx";
|
by: Kathy Burke |
last post by:
Hi, I've used the following javascript structure in other places in my
asp.net app, but for this one the pop-up window still goes to the back
and doesn't get the focus.
button onclick event:
Response.Write("<script>var w=window.open('ECN.aspx', 'ECN',
'width=650,height=550,top=50,left=100,toolbar=no,menubar=no,resizable=ye
s');w.focus();</script>")
Any ideas how to make this work or what could be causing the behavior?
|
by: mathewgk80 |
last post by:
HI all,
I am having popup calendar Javascript code. But i dont know how it is connecting to asp.net code.. I am using asp.net,c#.net and also using 3tier architecture with master page....
I would like to get the code for connecting the javascript to asp.net page...
Please help me...
The javascript code is as follows..
|
by: =?Utf-8?B?Y21lZWsxXzE5OTk=?= |
last post by:
Hello,
On a webpage, create an UpdatePanel with two DropDownLists.
Set AutoPostBack of DropDownList1 to true.
In the SelectedIndexChanged method, refill DropDownList2 and set the focus
to DropDownList1 using the ScriptManager SetFocus method.
Use the Visual Studio debugger.
Set a breakpoint on in the (!IsPostBack) part of the PageLoad method.
Start the web application and continue after the breakpoint has been reached.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |