-
28 Nov 2009 8:27 AM #351
@Dave--
Depending on what this means:
Rendering HTMLEditors into the child IFRAME is going to render IFRAMES within IFRAMES. You can likely render, but the key listeners for those nested editors are not bound to the correct document context. Ext does not support targeted-event-binding (per document). It will only handle events for the document context in which Ext was loaded.
Why not render an HTMLEditor(it is an iframe) into a regular Ext.Window instead? Is there a compelling reason to nest multiple frames for editing?
No. That is coded as intended (it handles the assignment AND asserts a value at the same time.
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
28 Nov 2009 8:34 AM #352
The application is a content management system where I'm trying to pull in the template page, which is fully described HTML, including stylesheets, etc, and replace key portions of the template with panels. (actually I misspoke, I'm not putting htmleditors in there now - those will be in a dialog)
So, I'm trying isolate the page template from the rest of the ext app so that CSS doesn't interfere.
I'm doing some debugging and found something interesting - if I put in a break point in multidom and loop through the code, it works. If I remove the breakpoint then it doesn't. This leads me to believe that I'm doing something in the wrong order and something isn't ready when it needs to be - but by delaying it it works.
Now that I've changed from using embedded HTMLEditors, I think I'm going to do some other HTML trickery before the iframe is loaded to link the template panels back to my code via other JS functions. So this question is probably moot besides an academic exercise.
Re: the asserts -yeah, I see that now, not a pattern that I tend to use just because it prompts questions from people like me.
and it could cause you debugging headaches later.
-
28 Nov 2009 8:41 AM #353
I would recommend you load either miframe.js or miframe-debug.js from the /builds directory. Things are arranged properly there.
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
30 Nov 2009 4:55 AM #354
Is messaging still supported?
Is messaging still supported?
Using IE8 and script looking like
Contents of test.html:Code:<script type="text/javascript" src='js/ext/miframe_2.js'></script> ... <iframe id="divId"></iframe> ... <script type="text/javascript"> Ext.onReady(function(){ var MIF = new Ext.ux.ManagedIFrame.Element("divId"); MIF.disableMessaging = false; MIF.on('message', function(){ alert(1); }); MIF.setSrc("test.html"); MIF.on('message', function(){ alert(2); }); sendMessage("blablabla"); // <- This line causes error "Object expected" }); </script>
Code:... <script type="text/javascript"> Ext.onReady(function(){ sendMessage("blablabla"); // <- The same "Object expected" error }); </script> ...
-
30 Nov 2009 5:31 AM #355
Why can
cause "Object expected" error?sendMessage("blablabla");
Doesn't depend if executed in IFrame or in Host window.
IE8, Ext 3.0.1, MIFrame 2.0.1
-
30 Nov 2009 2:00 PM #356
Dealed with "Object expected" error - need to work with frame when "documentloaded" event fired. But messaging still don't work. Does anybody have any living example of messaging (the one from FAQ in not working
)?
-
1 Dec 2009 7:26 AM #357Sencha - Community Support Team
- Join Date
- Nov 2008
- Location
- San Diego, Peoples' Republic of California
- Posts
- 2,040
- Vote Rating
- 7
SilkJS - Server Side JavaScript Swiss Army Knife and HTTP Server
Powerful, flexible, advanced charting for ExtJS and Touch: http://zingchart.com
Javascript rocks. Even on the server-side:
ExtJS Forums' Server-Side Javascript Social Group
-
1 Dec 2009 7:59 AM #358
Still working around creating of MIFrame, which child page would have "sendMessage" method. Seems that child is ordinary IFrame and it doesn't understand sendMessage("..."). Seen some code for "onerror" event in IFrame - does it parse exception on child frame and converts it to message?
Will appreciate any messaging example, working under ExtJs 3.0.3 IE8.
-
1 Dec 2009 12:50 PM #359
Hello all,
I'm using ManagedIframe to show a PDF using submitAsTarget and it works great on FireFox, Safari and Chrome using browser's Acrobat Plugin (on windows) or Preview plugin (on mac).
But, with IE8 it shows HTTP ERROR 405: Method not allowed. The exact message is:
"This error (HTTP 405 Method Not Allowed) means that Internet Explorer was able to connect to the website, but the site has a programming error."
Is the PDF rendering with submitAsTarget supported in IE8?
Any workaround on this?
-
2 Dec 2009 5:33 AM #360






Reply With Quote