﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - call a javascript function in an IFrame</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/call-a-javascript-function-in-an-IFrame/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>call a javascript function in an IFrame</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/call-a-javascript-function-in-an-IFrame/</link><pubDate>Fri, 11 Dec 2009 11:22:25 GMT</pubDate><dc:creator>jfrost2420</dc:creator><category>WebTab</category><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The &lt;/p&gt;&lt;pre&gt;document.getElementById('IFrame').contentWindow.test2();&lt;/pre&gt;
&lt;p&gt;works perfect.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>call a javascript function in an IFrame</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/call-a-javascript-function-in-an-IFrame/</link><pubDate>Thu, 10 Dec 2009 22:15:34 GMT</pubDate><dc:creator>jfrost2420</dc:creator><category>WebTab</category><description>&lt;p&gt;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. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have tried using the GetIFrameWidow as well as the contentWindow method but both do not work.  Any suggestions?&lt;/p&gt;&lt;pre&gt;    function test() {
        var tab = ISGetObject("WebTab1");
        var win = tab.GetIFrameWindow("IFrame");
        alert(win.name);
        //win.test2();
        //document.getElementById('IFrame').contentWindow.test2();
    }&lt;/pre&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>