on ‎2008 Nov 18 5:34 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.