cancel
Showing results for 
Search instead for 
Did you mean: 

calling iBrowser Object from iframe inside iframe

former_member331856
Participant
0 Kudos

Hi,

Normally i can get the selected value of iBrowser using this method.

var myString =document.appletname.getBrowserObject().getSelectedDatalinkValue();

But in my case i have iframe inside iframe. In 2nd iframe i am calling iBrowser.

I need to get the selected value of iBrowser in an iframe inside another iframe.

I tried iframe1.iframe2.document.appname.....

But i didn't get any value. Can anybody suggest regarding this.

Thanks & Regards,

Giri

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Try the following:

window.frames["TheIFrameName"].document.appletname.getBrowserObject().getSelectedDatalinkValue();

This should work as long as both IFrames are sourced from the same server. Cross-frame scripting when the sources are different servers is usually not permitted by the browser for security reasons.

Edited by: Rick Bullotta on Nov 19, 2008 6:40 AM

Former Member
0 Kudos

parent.someFunction();

maybe parent.parent.someFunction(); might work. If not you would have to write wrapper functions.

but... i would look into finding a way to do what you need without nested iframes. try using one page as a controller