Yea, tried that. Testcase here: http://jsfiddle.net/7v858/1/

Tested working on Chrome, but not Firefox 4b6 on Mac. Console shows
some uncaught exception stuff :(

On Oct 20, 9:35 am, Fábio M. Costa <[email protected]> wrote:
> I'm guessing here but it might work:
>
> Object.append(iframe.contentWindow.Element.prototype, Element.prototype);
>
> Did you try that?
>
> --
> Fábio Miranda Costa
> front...@portalpadroes
> Globo.com
> *github:* fabiomcosta
> *twitter:* @fabiomiranda
> *ramal:* 6410
>
>
>
>
>
>
>
> On Tue, Oct 19, 2010 at 10:57 PM, cheeaun <[email protected]> wrote:
> > So, there's no other way to extend elements besides loading moo in it?
>
> > On Oct 19, 4:25 pm, Christoph Pojer <[email protected]> wrote:
> > > You need to load mootools within the IFrame. What we did previously
> > > was a hack, just loading moo in a script tag is the way to go.
>
> > > On Oct 18, 3:02 pm, cheeaun <[email protected]> wrote:
>
> > > > I'm having the same problem too.
>
> > > > Here are some test cases:
> > > > MooTools 1.3 -http://jsfiddle.net/cheeaun/xteTn/
> > > > MooTools 1.2.5 -http://jsfiddle.net/cheeaun/xteTn/1/
>
> > > > After few hours of csi work, I found that Element.Prototype is
> > > > returning undefined, which explains why this line 234 in Element.js is
> > > > not workinghttp://
> > github.com/mootools/mootools-core/blob/1.3/Source/Element/Elem...
>
> > > > I somehow manage to fix this by changing line 60 in Element.jshttp://
> > github.com/mootools/mootools-core/blob/1.3/Source/Element/Elem...
> > > > to:
> > > >     if (!Browser.Element || !Element.Prototype){
>
> > > > Cheers,
>
> > > > On Oct 16, 1:14 am, אריה גלזר <[email protected]> wrote:
>
> > > > > On Fri, Oct 15, 2010 at 8:54 AM, goker.cebeci <[email protected]>
> > wrote:
> > > > > > in mootools 1.2.5
> > > > > > " If the IFrame is from a different domain, its window and document
> > > > > > will not be extended with MooTools methods. "
>
> > > > > > in mootolls 1.3
> > > > > > " An IFrame's window and document will not be extended with
> > MooTools
> > > > > > methods. "
>
> > > > > > var iframe = new IFrame({});
>
> > > > > > iframe.contentWindow.document.body.set is not a function!!!
>
> > > > > > How can i fix this?
>
> > > > > $(iframe.contentWindow.document.body).set
> > > > > --
> > > > > Arieh Glazer
> > > > > אריה גלזר
> > > > > 052-5348-561
> > > > > 5561

Reply via email to