-
9 Feb 2010 6:39 AM #501
-
9 Feb 2010 8:24 AM #502Sencha - Community Support Team
- Join Date
- Nov 2008
- Location
- San Diego, Peoples' Republic of California
- Posts
- 2,042
- Vote Rating
- 7
doug,
Ext-3.1.1 (just downloaded), mif-2.1 (just downloaded from your repo).
Much later in the program execution:Code:region: 'center', layout: 'card', activeItem: 0, items: [ ... { xtype: 'iframepanel', id: 'myframe', url: 'blank.html' } ... ]
myframe.getFrameDocument() is nullCode:var myframe = Ext.getCmp('myframe'); myframe.getFrameDocument().write('');
(the function exists, but returns null)
Steping into getFrameDocument():
and into getFrame():Code:getFrameDocument : function() { return this.getFrame() ? this.frameEl.getFrameDocument() : null; },
this.frameEl is null.Code:getFrame : function(){ if(this.rendered){ if(this.frameEl){ return this.frameEl;} var f = this.items && this.items.first ? this.items.first() : null; f && (this.frameEl = f.frameEl); return this.frameEl; } return null; },
Additional info:
Set a breakpoint at line ~2012 in mif.js in the onRender() function and it's never called.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
-
9 Feb 2010 9:25 AM #503
-
10 Feb 2010 1:16 PM #504
MIF window close problem
MIF window close problem
I am able to resolve the problem by referencing miframe.js instead of mif.js. But I am getting 'this.dom.readyState is null or not an object' error in IE when closing a Iframe window. Window is closing but then browser locking.
I am not getting this error in FF. But locking too.
close methodCode:var winMenuItem = new Ext.ux.ManagedIFrame.Window( { title : baslik, width : genislik, height : yukseklik, maximizable : true, collapsable : true, id : tabId + "Win", constrain : true, modal : showModal, closeAction : 'hide', onEsc : Ext.emptyFn(), closable : true, loadMask : { msg : 'Loading...' }, autoScroll : true, defaultSrc : adres, }); winMenuItem.show();
Code:closeWindow : function(winId) { var win = window.parent.Ext.getCmp(winId); if (win) { win.close(); }
-
11 Feb 2010 1:19 AM #505
Hi..
I have several problems here with miframe. I need to use iframe.
ExtJS : 3.1.1.
Test case: webpage containing javascript with only 2 panels(collapsible), and include miframe extension
miframe: 2 and 2_01
IE: javascript error: _elCache.$_doc is null, row 31 of miframe.js
Firefox: page successfully loaded, but when upper panel is collapsed, lower panel won't relocated its position.Code:var f=function(){};f.prototype=El.prototype;var docEl=new f();docEl.dom=el;docEl._isDoc=true;return cache._elCache['$_doc']=docEl;}
I need to solve both problems.... I've checked the codes and several resources, but still can't figure out the problem. Please give me some clue. Thank you..
-
12 Feb 2010 12:40 AM #506
Z-Order (I suppose) problem
Z-Order (I suppose) problem
I have the problem that you can see in the attached image.
When the menu float over the iFrame (a page with a java applet) the menu item is totally visible but the underlying panel is not visible.
I try setting z-order for the menu but I'm not able to solve the problem.
Can someone help me?
Sorry for my poor english, thank you.
-
12 Feb 2010 6:05 AM #507
Little doc error in eventsFollowFrameLinks
Little doc error in eventsFollowFrameLinks
Hello Doug,
I am currently having a hard time getting link clicks out of an iFrame following your examples. I just don't understand how it works but I will spend a fourth day trying on my own before bugging you.
But while reading through the documentation and sources I noticed one little error that might confuse others. The source comment for eventsFollowFrameLinks contains some wrong comment when I believe what is said here in the learning part.
It's exactly the same comment that seems to be correct for disableMessaging.
Just as a little hint.
Regards
-
12 Feb 2010 8:33 AM #508
This is not an MIF problem. This is an old problem with Ext. See this thread: http://www.extjs.com/forum/showthread.php?t=27515
I am still using this fix in Ext3.1.1 - but the css changes are no longer needed.
Here is my current override for this problem:
Code:// Note +2 adjustments below... seems to solve shimming in IE7+ - needs further research // This appears to still be required in Ext 3.1.x The underlying code has not really changed. if (Ext.isIE) { Ext.Layer.prototype.sync = function(doShow){ var sw = this.shadow; if(!this.updating && this.isVisible() && (sw || this.useShim)){ var sh = this.getShim(); var w = this.getWidth(), h = this.getHeight(); var l = this.getLeft(true), t = this.getTop(true); if(sw && !this.shadowDisabled){ if(doShow && !sw.isVisible()){ sw.show(this); }else{ sw.realign(l, t, w, h); } if(sh){ if(doShow){ sh.show(); } // fit the shim behind the shadow, so it is shimmed too var a = sw.adjusts; var sa = Ext.isIE ? 2 : 0; sh.setSize(w+a.w+sa, h+a.h+sa); sh.setLeftTop(Math.min(l, l+a.l)+sa, Math.min(t, t+a.t)+sa); } }else if(sh){ if(doShow){ sh.show(); } sh.setSize(w, h); sh.setLeftTop(l, t); } } }; }
-
12 Feb 2010 10:01 AM #509
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
12 Feb 2010 2:40 PM #510
Vertical resize problem
Vertical resize problem
Hi
I've got a basic setup of a modal window with a single iframe panel in it.
If I resize the window horizontally and vertically, then click the magnifying glass over the image, the image will zoom and the panel bring in vertical and horizontal scrollbars as expected.
However the image will only stretch horizontally to fill the increased panel size, not vertically. So I end up with a blank area at the bottom of the panel, rather than the image.
Looking the the HTML for the iframe, you can see the width value changes on a resize, the height doesn't. Is this normal or a bug?
Thanks, Len



Reply With Quote