Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jun 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Targeting Flash, Different Frameset

    Hello and thanks in advance.

    I've been attempting to create (with big help from better coders than I) a javascript / flash-actionscript which involves a flash document in one frameset and the javascript in another.

    At first, it only worked in Safari (Mac). A friend helped me to get it working for Safari (Mac), IE (Windows) and Netscape/Firefox (Windows).

    It does NOT, however, work in IE (Mac) or Netscape/Firefox (Mac).

    I'd very much like to have it working in as many browsers as possible, if not universally in all of them (smirk).

    One user suggested that I use the "Flash/JavaScript Integration Kit" and I'd be happy to if I could just get someone to show me HOW.

    I understand the installation well enough, no prob. So, now for my question ...

    Based on the following code, is there an easier or more streamlined way to get the same output in all current browsers, without errors? If not, how would I get the "Flash/JavaScript Integration Kit" to do this?

    My concept is simple but getting to work reliably is troubling

    The code ...

    NOTE: "upper" is the frameset and "navigation" is the flash doc.

    <html>
    <head>
    <script language="JavaScript">
    <!--
    function reSet(target, frameNumber)
    {
    parent.upper.document.navigation.TCallFrame(target, frameNumber);
    }
    //-->
    </script>********
    </head>
    <body bgcolor="#FFFFFF">*
    <form><input type="BUTTON" value="Reset" onclick="reSet('/', 3)"></form>
    </body>
    </html>

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Post a link to your page please or post the rest of your code.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Jun 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Try
    Code:
    <script type="text/javascript">
    <!--
    function reSet(target, frameNumber)
    {
    parent.frames['upper'].document.getElementById('navigation').TCallFrame(target, frameNumber);
    }
    //-->
    </script>
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New Coder
    Join Date
    Jun 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I tried this one. Another person also suggested it.

    Unfortunately, not only does it not solve the problem ... it doesn't work with Netscape for Windows either (which I already have working).


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •