returns an iframe object when an URL is attached to a tab
HTMLElement | an iframe object |
// as loading is async, you need to do it through an event
myTabbar.attachEvent("onContentLoaded", function(id){
// get frame
var ifr = myTabbar.tabs(id).getFrame();
// access to iframe's element
var elem = ifr.contentWindow.document.getElementById("someId");
elem.innerHTML = "some text";
// access to iframe's function
// make sure that the function is in the iframe's window scope
ifr.contentWindow.someFunc();
});
// and then attach an URL
myTabbar.tabs(id).attachURL("server/page.php?param=value");
learn how to manage the attached content from the article Attaching URL
Back to top