Hi!
I have a text input field on page with a tabbar iframe window that I need to update from parent.
It works flawlessly in Firefox, but IE gives the following error:
“tabbar.cells(…)._frame.contentDocument’ is null or not an object”
Here is my codeline:
tabbar.cells(“b1”)._frame.contentDocument.getElementById(“myfield”).value=“newvalue”;
Do you have any suggestions?
Hello,
try the following approach instead of one that you use:
var win = tabbar.tabWindow(“b1”);
win.document.getElementById(“myfield”).value=“newvalue”;
This works in IE but not firefox.
My current workaround is as follows:
if ( tabbar.cells(“b1”)._frame.Document )
tabbar.cells(“b1”)._frame.Document.getElementById(“myfield”).value=“newvalue”;
else
tabbar.cells(“b1”)._frame.contentDocument.getElementById(“myfield”).value=“newvalue”;
Not pretty, but it works
I’m sorry, I see that my respons was a bit hasty.
I’ll try your code.
Thanks.