-
29 Sep 2011 4:51 AM #841
Hello,
I need to do the following: I generate a JSON structure in my extjs page, post this to the server and get an SVG file back. I need to show this SVG file in a panel in my extjs page.
I can do this inline, but only if my file containing the extjs code is an xhtml page, which triggers some bugs in extjs.
In Firefox, I cannot show the SVG inline in a regular html page, so I was thinking of using an iframe and your extension.
But I don't seem to find how to do this.
I can get the SVG with Ext.Ajax.request(...) but when I then try to update the Ext.ux.ManagedIFrame.Panel, the SVG is put again in an html document inside the iframe and does not render in FF.
Is there a way to set the content-type?
I cannot just use the src parameter since I need to pass this JSON.
I tried with the load method, but it seems the request is never executed...
Any help or pointers in the right direction would be appreciated.
Thanks,
Philip
-
3 Oct 2011 11:55 AM #842
@bauwelp --
The MIF.submitAsTarget method sounds like the way to go. Submit/POST your JSON structure as params to that method and the IFRAME will render whatever the server returns as a result."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.
-
10 Oct 2011 2:15 AM #843
-
28 Oct 2011 5:07 AM #844
Hello,
Does ManagedIFrame works with Sencha Touch 1.1.1 ? And now can you display pages from foreign domain in the iFrame ?
Thanks a lot
-
29 Jan 2012 2:14 AM #845
Hi
there is a way to change the Ext.ux.ManagedIFrame.Window title from the loaded code ?
I see that from the inside code I can access the hostMIF variable.. but no way to change the ManagedIFrame Window (or at least I haven't fount a way..)
tywe make IT work for you
-
29 Jan 2012 5:41 PM #846
@dtex --
For the MIF.Window instance title (from within the frame document), it's simply:
Code:window.hostMIF.ownerCt.setTitle('Something New');"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.
-
29 Jan 2012 11:46 PM #847
ty hendricd
if it can be useful for others... to manage the related button on the taskbar it is enough to access the variable taskButton ont he ownerCt
e.g. I used it in order to change the taskButton title and tooltipCode:window.hostMIF.ownerCt.taskButton
ty again.we make IT work for you
-
3 Mar 2012 11:55 AM #848
Ext 3.4 with ManagedIFrame Panel / Shim Issue / Ext.Window border is missing slices
Ext 3.4 with ManagedIFrame Panel / Shim Issue / Ext.Window border is missing slices
First, thank you Doug for a great component. I use it alot in our app and just bought a license!
I have this one issue where Ext.Window's are missing some slices of the border/graphics when shown over top a managed iframe with a PDF.
I have tried:
Ext.useShims = true;
Setting shim:true on the window and manually calling showShims(). Nothing works so far.
My Code is pretty simple:
You can see exactly what I mean here:Code:{ xtype : 'iframepanel', style : 'padding:0px;', defaultSrc : formManager.getFormUrl(this.node.id,'preview'), autoDestroy : true, autoScroll : true }
http://screencast.com/t/o5xjwCoROnq
We are launching a beta version of our app on Monday and trying to get this little issue worked out..
Brook
-
9 Mar 2012 7:16 AM #849
Ext 3.4 with ManagedIFrame Panel / Shim Issue / Ext.Window border is missing slices
Ext 3.4 with ManagedIFrame Panel / Shim Issue / Ext.Window border is missing slices
*bump* - anybody?
-
13 Mar 2012 5:24 PM #850
@brook --
This is not an MIF-specific feature, but a tricky Ext configuration puzzle
Have a look at http://demos.theactivegroup.com/demo...script=acrobat
examining the source and differences between rendering the PDF natively vs hosted in an iframe."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.


Reply With Quote


