开发者

jQuery Form .live submit event in Firefox

I've got some jQuery 1.4.4 code

$('.AJAXForm').live('submit', function (e) { .... });

that's working fine in IE but not in Firefox. I'm loading the forms into divs on $(document).ready(...) with

$('#DivPlaceHolderName').load('URLName .AJAXPageSection');

so that it loads just the section of the target page containing the form object (so that the target form pages also function standalone, in case scripting isn't enabled) but the .live function isn't binding to the form objects when it runs in Firefox. I've tried manually putting an equivalent form on the page 开发者_运维百科itself and it runs the code fine, but the live aspect doesn't seem to work when the forms are subsequently loaded. This works fine with a link (a separate, but similar set of code) and also in Opera, so I'm guessing it's a Firefox issue with the 'submit' event? If so, is there a workaround for FF?

Thx

MH


jQuery has been significantly improved since 1.4.4. I'd try The latest version of jQuery (1.6.2 as of this post) to see if the issue has been fixed in the source.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜