Hi,
I'm actually writing the same application - ASP.NET application working with
bar code scanner. Here is form, that works fine:
<mobile:Form id="FormEANFind" runat="server" Paginate="True"
PagerStyle-NextPageText="->" PagerStyle-PreviousPageText="<-"
StyleReference="Form">
<mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
<Choice Filter="isHTML32"
Xmlns="http://schemas.microsoft.com/mobile/html32template">
<HeaderTemplate>
<mobile:Link id="LinkEANIndex" runat="server"
NavigateUrl="index.aspx">Index</mobile:Link>
</HeaderTemplate>
</Choice>
</mobile:DeviceSpecific>EAN:
<mobile:TextBox id="edtEAN" runat="server"></mobile:TextBox>
<mobile:Command id="btnSubmitEAN" runat="server">Find</mobile:Command>
<mobile:Label id="lblEANError" runat="server"
StyleReference="error"></mobile:Label>
<mobile:Panel id="Panel1" runat="server">
<mobile:DeviceSpecific id="DeviceSpecific5" runat="server">
<Choice Filter="isHTML32"
Xmlns="http://schemas.microsoft.com/mobile/html32template">
<ContentTemplate>
<Script for="window" event="onload" language="jscript">
window.FormEANFind.edtEAN.focus();
</Script>
</ContentTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Panel>
</mobile:Form>
But trouble is to handle onchange event and take some action. I found on
Internet, that you should use such script (for example):
window.FormEANFind.edtEAN.onchange = text_changed;
function text_changed(e)
{
window.FormEANFind.btnSubmitEAN.click();
}
It looks so fine, but it doesn't work. I'll post question in this newsgroup,
so check it for possible answer from another user.
pgyb
> Hi,
>
[quoted text clipped - 6 lines]
> Remark :
> As the textbox on a mobile webform has no setfocus method the below code is mentioned as solution for setting the focus on a textbox on a mobile
webfrom on several forums. BUT..
> I dont get it working, because nowbody states the correct
> <deviceFilters> setting in the web.config...
[quoted text clipped - 17 lines]
>
> Our newsgroup
engine supports Post Alerts, Ratings, and Searching.