Firefox错误?解决方法? [英] Firefox error? Workaround?

查看:94
本文介绍了Firefox错误?解决方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




今天遇到问题 - 在INPUT字段中Firefox执行

清除内容如果用户按下Esc,_ before_ control通过onkeydown转到

代码 - 搜索显示它是一个已知的问题:

https://bugzilla.mozilla.org/show_bug.cgi?id=236628


该错误由于不活动而关闭(我刚刚写信给

提交者,因为显然我没有权利重新开放)


对于Internet Explorer,常见问题解答中列出了一个解决方案:
http://www.faqts.com/knowledge_base/...d/9008/fid/130


但Firefox。 ..常规方法不起作用:
http://www.experts-exchange.com/Web/..._21064248.html


任何信息或解决方法?


-

问候,

Paul
http://RusWin.net

Hi,

Ran into the problem today - in INPUT field Firefox executes
clean-yp of the content if a user presses Esc, _before_ control goes to
the code via onkeydown - and search showed that it''s a known issue:

https://bugzilla.mozilla.org/show_bug.cgi?id=236628

The bug is closed due to the inactivity (I''ve just written to the
Submiter because apparently I don''t have rights to re-Open)

For Internet Explorer there is a solition listed in the FAQ:
http://www.faqts.com/knowledge_base/...d/9008/fid/130

but Firefox... Regular ways do not work:
http://www.experts-exchange.com/Web/..._21064248.html

Any information or workaround?

--
Regards,
Paul
http://RusWin.net

推荐答案

Paul Gorodyansky写道:
Paul Gorodyansky wrote:

今天遇到问题 - 在INPUT字段中,如果用户按下Esc,Firefox会执行内容的清理,_before_控制转到
代码onkeydown - 搜索显示它是一个已知的问题:


Firefox似乎有一个错误,而且keydown事件与

相关,显示警告:


< URL:https://bugzilla.mozilla.org/show_bug.cgi?id = 326484>

但是,你所描述的行为确实如此不适合我

(Firefox 1.5)。试试这个:

< input type =" text"

onkeydown =" document.getElementById(''xx'')。innerHTML = this.value;" ;>

< div id =" xx"

onclick =" alert(document.getElementById(''text-01'')。value); "< / div>
Hi,

Ran into the problem today - in INPUT field Firefox executes
clean-yp of the content if a user presses Esc, _before_ control goes to
the code via onkeydown - and search showed that it''s a known issue:
There appears to be a bug with Firefox and the keydown event related to
showing alerts:

<URL:https://bugzilla.mozilla.org/show_bug.cgi?id=326484>
But otherwise, the behaviour you describe does not happen for me
(Firefox 1.5). Try this:
<input type="text"
onkeydown="document.getElementById(''xx'').innerHTML = this.value;">
<div id="xx"
onclick="alert(document.getElementById(''text-01'').value);"</div>




1.按''a'',不要更改''xx''。

2 。按''b'',在''xx''中查看''a''。

3.按''c'',在''xx'中查看''ab'' 。

4. Pres Esc,在''xx''中看''abc''。

5.再次按Esc,输入被清除但''abc''仍显示在''xx''。

6.再次按Esc(第3次),''''显示在''xx''。

我正在使用一个警报,但在尝试时发现了上面的错误。


[...]

-

Rob



1. Press ''a'', no change to ''xx''.
2. Press ''b'', see ''a'' in ''xx''.
3. Press ''c'', see ''ab'' in ''xx''.
4. Pres Esc, see ''abc'' in ''xx''.
5. Press Esc again, input is cleared but ''abc'' still shown in ''xx''.
6. Press Esc again (3rd time), '''' shown in ''xx''.
I was using an alert but discovered the bug above when trying that.

[...]
--
Rob


RobG写道:

[...]
RobG wrote:
[...]

< input type =" text"
onkeydown =" document.getElementById(''xx'')。innerHTML = this.value;">

<input type="text"
onkeydown="document.getElementById(''xx'').innerHTML = this.value;">




哎呀,蹩脚的切割&粘贴:


< input type =" text" id =" text-01"

onkeydown =" document.getElementById(''xx'')。innerHTML = this.value;">


-

Rob



Ooops, crappy cut & paste:

<input type="text" id="text-01"
onkeydown="document.getElementById(''xx'').innerHTML = this.value;">

--
Rob





RobG写道:
Hi,

RobG wrote:

...
4. Pres Esc
5.再次按Esc,输入已清除

...
4. Pres Esc
5. Press Esc again, input is cleared




它'这是我报道的 - 关于_input被清除_,这是一个用户

丢失了她/他的输入...请参阅我的第一个

消息中列出的BugZilla条目。


-

问候,

Paul
http://RusWin.net


这篇关于Firefox错误?解决方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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