Rank: Member Groups: Member
Joined: 11/16/2007 Posts: 18
|
I have a splitter (orientation=vertical) on a page and on the right side I have an IFrame inside the SplitterPane, I want to reload the IFrame using a button on the left side but I can't refer to the IFrame control since is inside the SplitterPane is not finding the iFrame ID
function Reload() { var f = document.getElementById('iFrame1'); f.src = f.src; }
How can I refer to the IFrame control using JavaScript. I and know this may be more of a javascript knowledge but any help will be appreciated.
Thanks in advance!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
Your code looks fine to us. Splitter does not change anything about iframe. So you would just use it the same way as if there were no splitters.
You may want to try use window.open. That supposes to work too, and you do not have to get the iframe element that way.
Thanks
|