This project is archived and is in readonly mode.

#157 ✓wontfix
Woodwater

Element: IFrame Problem.

Reported by Woodwater | June 23rd, 2008 @ 08:05 PM | in 1.3.0 rc2 (closed)

Hi guys,

First a bit of history. One of the "problems" we have with our application at the moment is that we have to included Mootools on every page of the website in order to have access to those wonderful moo functions.

1.2 solves this with the IFrame element which extends any IFrame

created with it with Mootools...(if it's on the same domain, which it is in my case.)

I've tried this on a small scale before implementing it and it doesn't seem to work.

Once I've created an iFrame with the IFrame element, I can access the $('') shortcut with all the methods attached to it, but I can't ADD any create HTML to the page. Whenever I try to .adopt() or .inject() it, pardon the language, craps.

The error I get in IE strong when I try to add an HTML element I've created with the moo extensions*strong* is this:

_italics_No such interface supported. italics

The one I get in Firefox (Firebug) is even better:

[Exception... "Cannot convert WrappedNative to function" nsresult:

"0x8057000d (NS_ERROR_XPC_CANT_CONVERT_WN_TO_FUN)" location: "JS

frame :: http://localhost/IFrame%20Test/f... :: DoSomething ::

line 11" data: no]

http://localhost/IFrame%20Test/f...

Line 11

I've tried posting on the Google Group, but I haven't gotten anything back which leads me to believe it's a bug rather then a poor implementation on my part.

Thanks for a great release.

Cheers. :)

Dave Woodwater.

Comments and changes to this ticket

  • Woodwater

    Woodwater June 23rd, 2008 @ 08:16 PM

    Wow...I guess I have no idea how to use those formatting tags. Maybe it IS bad implementation on my part. :P

    I hope it's still clear anyways.

    Cheers.

  • Ryan Mitchell

    Ryan Mitchell February 12th, 2009 @ 12:41 PM

    • Tag set to element, firefox, ie, iframe

    You can add elements using:

    iframe.contentWindow.document.createElement("style");

    But i agree, some way of scoping new Element() to a certain document would be great...

  • Daniel Steigerwald

    Daniel Steigerwald February 12th, 2009 @ 02:21 PM

    use elFromAnotherDocument.getDocument().newElement(...

  • fakedarren

    fakedarren February 8th, 2010 @ 05:12 PM

    • State changed from “new” to “open”
    • Assigned user changed from “Valerio” to “fakedarren”
    • Milestone changed from 2.0 to 1.3.0 rc2
  • fakedarren

    fakedarren February 14th, 2010 @ 02:23 PM

    • State changed from “open” to “invalid”

    Feel free to join us in our IRC channel or comment in the Google Group about how to go about implementing this. All I can say is that iframes are a bitch :D

    Apologies for the delay in providing a response.

  • fakedarren

    fakedarren February 14th, 2010 @ 02:25 PM

    • State changed from “invalid” to “wontfix”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Attachments

Pages