iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I have a WebTab with two TabPages - each using the IFrame ContentMode. I am trying to call a javascript function in one of the IFrame pages from the page containing the WebTab control.
I have tried using the GetIFrameWidow as well as the contentWindow method but both do not work. Any suggestions?
function test() { var tab = ISGetObject("WebTab1"); var win = tab.GetIFrameWindow("IFrame"); alert(win.name); //win.test2(); //document.getElementById('IFrame').contentWindow.test2(); }
Thanks!
Ok - I can't believe I didn't try this. What I was missing is to 'activate' the tab referencing the IFrame that I want to call the function in.
The
document.getElementById('IFrame').contentWindow.test2();
works perfect.
Thanks.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname