PDA

View Full Version : Dynamic i frames in dialog.



stalin
21 Feb 2007, 4:15 AM
Hi guys

Guys i am rtying to load a page in an ifrme of my dialog south region. How can i accomplish tp load it.

Basically my doalog south region is for error displaying. When i do some action im tryig to display erors on dat region.
But am not able to load a page in dat region. I tried to write text instead of page there also i failed to

do script. Any body give me a suggession regarding this

stalin

BernardChhun
21 Feb 2007, 4:39 AM
I used the DomHelper to create an iFrame inside a specific region:


var iframe= YAHOO.ext.DomHelper.append('the-id-of-the-region', {tag: 'iframe', id: 'myIframe', frameBorder: 0, src: "http://www.google.com"});

stalin
22 Feb 2007, 3:27 AM
Hi friends

Thanks a lot friend, not it sems working .

I hav another query regarding Dialog..That i tried to close my dialog when subit butten of he page which loading inside the i frame. But The page is entirly different from the dailog page. How can i refer my dialog from that page. I really want to close my dialog when an action finished in iframe.

Frieds can u tel any tips ......

BernardChhun
22 Feb 2007, 5:51 AM
Hi friends

Thanks a lot friend, not it sems working .

I hav another query regarding Dialog..That i tried to close my dialog when subit butten of he page which loading inside the i frame. But The page is entirly different from the dailog page. How can i refer my dialog from that page. I really want to close my dialog when an action finished in iframe.

Frieds can u tel any tips ......

i'm not sure if I understand clearly that part stalin...maybe you have a link to show us what's not suppose to happen?

stalin
23 Feb 2007, 12:04 AM
Hi friend
Thanks for your reply

Let me clear it once again....

I am loading dialog from another PHP page. And i loaded a page inside my dialog, on submit that page i need to close my dialog, as well as update a content panel in the main page from where iam calling my dialog. Main page is a php file and dialog is a js file which i included in main page.

here i am confused how to update that content panel from the dialog.
stalin