Calling js function inside a child tab

  1. #1

    Calling js function inside a child tab

    Lo.
    First great job for the .8 release, lot of cool stuff in it :)

    I'm basically using the same stuff than the exemple explorer, with a menu that lets me dynamically add tabs to a tabpanel.
    Let's say that the logic is in Default.aspx, and that i'm opening Page1.asp, Page2.aspx inside tabs (AutoLoading), in which u can find somrthing like that :
    <script type="text/javascript">
        function foo(){
            alert('bar');
        }
    </script>
    Now I can' seem to find a way to call 'foo()' from Default.aspx.
    I can get the relevant tab easily, and thought I could do something by getting the frame, but I can't :/

    Any help would be appreciated.

  2. #2

    RE: Calling js function inside a child tab

    Hi,

    Tab1.iframe.dom.contentWindow.foo()

    Tab1 is tab (not tabpanel) which contains iframe page
  3. #3

    RE: Calling js function inside a child tab

    thx a lot vlad :)

Similar Threads

  1. [CLOSED] DesktopShortcut calling a Javascript Function
    By FAS in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 18, 2012, 5:23 PM
  2. Calling JavaScript function
    By UserClarion in forum 1.x Help
    Replies: 2
    Last Post: Dec 30, 2011, 10:23 AM
  3. Success function in calling Direct Method..help!
    By Aleksa007 in forum 1.x Help
    Replies: 2
    Last Post: Jul 26, 2011, 4:36 PM
  4. [CLOSED] Calling a Javascript function of Child page from Popup (inside Frame)
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 27, 2011, 6:00 AM
  5. [CLOSED] Calling js function from parent page
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 03, 2010, 10:50 AM

Posting Permissions