搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

MooTools class worked before 23.0.1

more options

For a web application that I am working on using MooTools (and a custom class for modal windows), FF21, IE7-10, and Chrome24 all work just fine. Upgrade to FF23.0.1, and there's an error when trying to close a modal window - nothing works and the page has to be refreshed to continue working.

hide: function(){

 var win = this;
 parent.frames[win.name].$('containerID').setStyle('display','none');
 win.popup.addClass('hidden');
 return win;
 }

This closes the modal in FF21, IE7-10, and Chrome. But not in FF23.0.1.

For a web application that I am working on using MooTools (and a custom class for modal windows), FF21, IE7-10, and Chrome24 all work just fine. Upgrade to FF23.0.1, and there's an error when trying to close a modal window - nothing works and the page has to be refreshed to continue working. hide: function(){ var win = this; parent.frames[win.name].$('containerID').setStyle('display','none'); win.popup.addClass('hidden'); return win; } This closes the modal in FF21, IE7-10, and Chrome. But not in FF23.0.1.

所有回覆 (3)

more options

Then the developer has to update their addon/plugin for the newer versions of firefox, if its really needed, you can revert to the last working version.

more options

What error messages do you see in the Web Console (Firefox/Tools > Web Developer;Ctrl+Shift+K) about this issue?

Firefox may not support frames[win.name], but only frames[#] with an index number and you may need to use getElementById() or getElementByName() instead.

more options

FireBug is reporting: parent.frames[win.name].$ is not a function

It _could_ be that FF 23 only supports index instead of name/id, but that seems an odd thing to stop supporting name/id after so many versions do. Was working flawlessly in v21.

I'll look into it to see if frame support has changed in v23.

Thanks,

JD