ENART.HZRN.COM
welcome to my space
X
Search:  
 HOME   Accessing Layout from iframe window
Accessing Layout from iframe window
Published by: anonym 2010-03-18
Welcome to:enart.hzrn.com

  • 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 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


  • 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 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.


  • 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.





  • How to force a columnModel custom renderer to re-render
    Click/Activate Event of Content Panel

    You are looking at:enart.hzrn.com's Accessing Layout from iframe window, click enart.hzrn.com to home
  • quotes about movies
  • what does this quote mean to you
  • poll what quote saying describes what your feeling right now
  • quotes on the crucible
  • easy 10 points just have to say one phrase
  • is there a quote that says something like silence is agreement or silence means consent
  • good funny senior quotes best answer 10 points
  • can you explain the quote please
  • can someone help me find a quote about belonging
  • favorite quotes
  • quotes for courage
  • what does the author matthew lippman mean when he states that “vicarious liability is contrary to the core
  • a quote about a barrier to belonging
  • what exactly does once bitten never shy mean
  •  
  • what quote saying or piece of advice do you try to live by
  • what is a nice mother daughter quote
  • meaningful quotes song lines
  • what quote could i havee for
  • what 039 s a good catchy quote that states that 039 you should not smoke 039
  • how in the hell do you embed a quote
  • do you know the source of this quote
  • what is opinion on this saying never say never
  • ☺•ill pick u for the best answer if someone can give me some quotess read
  • how can i cite dialogue in a play in an essay
  • song poem that goes with the bell jar
  • where can i find posters sayings quotes banners etc of motivational sayings to hang up in classroom
  • to kill a mocking bird
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 enart.hzrn.com        Site made:CFZ