I have an layout defined with west and center panel. The center panel is an iframe. when a link is clicked from the iframe src, I want to change a content panel of the west panel.
Am able to achieve this if I do something like this in the js function that builds the layout
layout.getRegion('west').showPanel(contentPanelNam e); --> this is in the Ext.onReady function
But from the iframe html , I am not getting access to the layout !!
Could you please tell me how to do this?
Thanks
Joseph
I think you need to ref the var via 'parent.' This has come up before - try searching on iframe+parent to see some discussions of issues related to this.
Thanks Tim. Got it resolved.
Had to do a global referencing of the layout like this...
window.layout = layout;
and in the calling function, I just did this like you said...
parent.layout.getRegion('west').showPanel(contentP anelName)
Worked perfect !!!
thanks !
Joseph
I apologise for sticking my nose in but I suspect that a few new users are following the advice in the tutorial which advocates using an Iframe.
I have since read that this is not the best route to take, is that the common opinion?
Oo
I haven't looked at the tutorials lately, but I thought the layout tutorial advocated NOT using an IFRAME as your first choice. Unless there's a specific reason, e.g. loading something from a different URL, or needing to keep the CSS out out your main page, or loading some monster pre-existing page from your site that can't be modified to load as snippet, IFRAMEs should be avoided.
I apologise for sticking my nose in but I suspect that a few new users are following the advice in the tutorial which advocates using an Iframe.
I have since read that this is not the best route to take, is that the common opinion?
Oo
How to force a columnModel custom renderer to re-render
Click/Activate Event of Content Panel
|