Subscribe RSS

叶子

叶子的阳光和天堂
  • Index
  • Tag
  • Link
  • Archiver
  • Guestbook
  • About
Home » 闲 » firefox 3.0.1的event实现bug

firefox 3.0.1的event实现bug

September 23, 2008 Posted by 叶子 under 闲
No Comments

朋友说,给前几日的那个联动下拉做个灰色不可选,没想到实现的时候发现了firefox3的event实现bug。代码如下:

注意,这段代码ie下无效,请在非ie内核看。opera chrome safari按一次就可以alert,而firefox需要按2次 我猜firefox偷懒,没有立即对elementes重新加载或者判断 所以虽然确实效果是ubdisabled了,但是ff还认为是disabled,所以没有events,自然dispatchEvent就没了效果。我贴到了dhtml群,王好奇同学给了解决办法,加settimeout。确实,加了这个‘延时’后,也只需要按一次就可以alert了。不过我的因为是n个select联动,所以settimeout这种0秒‘延时’,导致触发不了后面的select 失效ing…
Tags – firefox , event , createevent , dispatchevent
]]>

Leave a Reply Cancel reply

You must be logged in to post a comment.

« QQ 9年了
九一八事变 七十七周年 »
Search
Tag
51js alcatel android apple apps audio barbone d510mo droid x g450 godaddy google hosting html5 ie6 interview ipod javascript jquery lunarpages me811 motorola ot-c123 QQ shuffle sony ericsson thinkpad toshiba x10i 世纪公园 东芝 域名 天台山 小帅 拙政园 摩托罗拉 日志 浙江 猫 索尼爱立信 网络 苏州 阿尔卡特 面试 龙穿峡
Category
  • 好 (12)
  • 手 (7)
  • 游 (4)
  • 闲 (211)
Calendar
September 2008
S M T W T F S
« Aug   Nov »
 123456
78910111213
14151617181920
21222324252627
282930  
Recent Posts
  • 测试下关联博客
  • 2012来了
  • ipad2 3g 64G
  • 上海车展
  • 随拍
  • android的html5之audio
  • apple magic mouse
  • godaddy的org续费2年起?
Recent Comments
    Meta
    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
    叶子 powered by WordPress and The Clear Line Theme