Opera Mobile 9.7 Beta Set Focus [英] Opera Mobile 9.7 Beta Set Focus

查看:87
本文介绍了Opera Mobile 9.7 Beta Set Focus的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用手持式扫描仪将物品移入和移出库存。扫描程序运行ASP页面,提交表单以移动项目。我们最近购买了一台运行Windows Mobile 6.1的新扫描仪,很快意识到Mobile IE完全没用。它没有正确呈现表格,更糟糕的是,它无法识别onblur,onkeypress和许多其他常见的javascript函数。

We use a handheld scanner to move items in and out of inventory. The scanner runs an ASP page that submits the form to move the item. We recently purchased a new scanner running Windows Mobile 6.1 and soon realized that Mobile IE is completely useless. It does not render tables correctly and worse, it doesn't recognize onblur, onkeypress and many other common javascript functions.

我们测试了许多移动浏览器并发现Opera Mobile 9.7工作得很好,除了在页面加载时将焦点设置在输入文本字段上。该页面有许多文本字段,并将表单提交回自身进行处理。扫描一个字段(或在键盘上输入)后,表单会自行提交,处理输入并启用表单上的下一个字段。在标记结束时,调用select()和focus()来选择字段中的任何文本并设置焦点,以便用户所要做的就是扫描值。以下是javascript在页面末尾的样子。

We tested out many mobile browsers and found that Opera Mobile 9.7 works great except for setting the focus on an input text field when the page loads. The page has many text fields that and submits the form back to itself for processing. Once one field is scanned (or entered on the keyboard), the form submits itself, process the input and enables the next field on the form. At the end of the markup, select() and focus() are called to select any text in the field and to set focus so all the user has to do is scan the value. Here is what the javascript looks like at the end of the page.

document.forms [frm1]。elements [txt1]。select();
document.forms [frm1]。elements [txt1] .focus();

document.forms["frm1"].elements["txt1"].select(); document.forms["frm1"].elements["txt1"].focus();

有没有办法把重点放在Opera Mobile 9.7上?

Is there any way to set focus on Opera Mobile 9.7?

推荐答案

这里是如何设置Opera Mobile

Here is how to set the focus on fields in Opera Mobile

这篇关于Opera Mobile 9.7 Beta Set Focus的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆