为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox / Javascript Issue within Widgets

  • 3 个回答
  • 0 人有此问题
  • 9 次查看
  • 最后回复者为 Morbus

more options

I am a web developer and only Firefox has this issue. Where by using jQuery (iNettuts widgets) and placing a JavaScript calling for an advert from an ad server Firefox clears the page (white bg) and only displays the advert multiple times. Following error thinks there is an issue with my JS script but where it insists the issue is doesn't have any relevance to the advert displaying. I have uploaded the demo onto a folder on our server for you to see. Issue that firebug picks up is "uncaught exception: [Exception... "'[JavaScript Error: "$(clonedWidget).attr("class") is undefined" ]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "native frame ::  ::  :: line 0" data: yes]" and as I said only firefox has this issue. please advise.

URL of affected sites

http://www.aadula.com/test2/index.php

I am a web developer and only Firefox has this issue. Where by using jQuery (iNettuts widgets) and placing a JavaScript calling for an advert from an ad server Firefox clears the page (white bg) and only displays the advert multiple times. Following error thinks there is an issue with my JS script but where it insists the issue is doesn't have any relevance to the advert displaying. I have uploaded the demo onto a folder on our server for you to see. Issue that firebug picks up is "uncaught exception: [Exception... "'[JavaScript Error: "$(clonedWidget).attr("class") is undefined" ]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "native frame :: :: :: line 0" data: yes]" and as I said only firefox has this issue. please advise. == URL of affected sites == http://www.aadula.com/test2/index.php

所有回复 (3)

more options

Hello Colin.

You may be hard pressed to get a proper answer here (since there are so many people with issues and so few volunteers), and I'm far from the best person to help you with this, since I lack knowledge in this area, but have you tried the w3c javascript validator (or something) to see if your script is or isn't standard compliant?

more options

I've used an online validation tool but with it being jQuery and not JS you cant say which library is being used and with around 3000 lines to go through its fairly inconclusive. however as other browsers are not having the same issue then it limits down to only one denominator and that is how firefox handles JQuery and JS. Is there a better place to submit this post?

Thanks,

more options

Oh think I see what you mean... Sorry about that confusion too.

As for a better place to talk about this, I would think mozillaZine to be good enough. Or Bugzilla, if you have technical details and want to search for an open bug or file a new one. The Google Groups of Mozilla are also frequently populated with important developers, so you may want to try there, but please, be as technical as possible.

I'm sorry for not being of more help.