That means that mootools is not loaded in the frame that code is trying to 
target.
parent.frames['frame_name'] just return a reference to that frame
(see http://www.jibbering.com/faq/#windows)

what happens now is that if that (i)frame doesn't load mootools, the 
reference to that frame window.$ is undefined, but since you are trying to 
call undefined('id_of_container') and undefined is not a function, FF will 
report that error.
if you try the same page in chrome you should see a message that should 
look like 
Uncaught TypeError: Object [object global] has no method '$' 


On Monday, September 23, 2013 8:38:27 PM UTC+1, Jack Drysdale Jr wrote:
>
> Hello, everyone.
>
> I'm new to MooTools (started working here in July 2013; I'm from a jQuery 
> background), and have just started experiencing an issue that didn't exist 
> before upgrading a testing FF browser to 23.0.1.
>
> This issue is only in FireFox v23.0.1, not IE7/8/9/10, nor in Chrome 24, 
> and did not exist in FireFox v21.0.1.
>
> The project has several included .js files that are MooTools classes 
> created by a previous programmer.  One is for modal popup windows.  Up 
> until now, it has worked flawlessly.
>
> In FF23.0.1, whenever a user tries to close the modal by either the "X" in 
> the corner, or by clicking "SAVE" in the form contained within the modal, 
> FireBug reports "parent.frames[win.name].$ is not a function."
>
> The lines around the line in question are:
>
>  
>
>> *hide: function(){*
>> *  var win = this;*
>> *  parent.frames[win.name].$('id_of_container').setStyle('display','none');  
>> // This is the line throwing the error.*
>> *  win.popup.addClass('hidden');*
>> *  }*
>>
>
> Has anyone else experienced anything simliar, after a FF upgrade?
>
> Thank you,
>
> JD
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"MooTools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mootools-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to