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 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Flash banner writing to iFrame

    I have a flash banner with my navigation included with that. I have them opening in my iFrame, but in Firefox it opens the pages in a new tab and not in my iFrame . Is there any way to open the pages in the iFrame using the flash to navigate? any help would be apreciated thanks.

    -Ali
    Distinct media *Coming Soon*

    "We followed white lines to the sunset "

  • #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
    Sure but we need to see your code. We aren't psychic you know.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well what code? You want the action script from the flash or html? this is my html basically:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head><script language="JavaScript">
    <!--
    function calcHeight()
    {
      //find the height of the internal page
      var the_height=
        document.getElementById('iFrame').contentWindow.document.body.scrollHeight;
    
      //change the height of the iframe
      document.getElementById('iFrame').height=
          the_height;
    }
    </script>
    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    @import url("css/css.css");
    -->
    </style>
    </head>
    
    <body>
    <div align="center">
      <table border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="216">
            <param name="movie" value="Images/Banner_nav_audioPlayer.swf">
            <param name=quality value=high>
            <embed src="Images/Banner_nav_audioPlayer.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="216"></embed>
          </object></td>
        </tr>
        <tr>
          <td><table width="800" border="0" cellspacing="0" cellpadding="0">
            <tr>S
              <td><iframe name="iFrame" onLoad="calcHeight();" scrolling="no" width="800"  id="iFrame" src="index.htm" frameborder="0" allowtransparency="true"> This is where the iframe goes</iframe></td>
            </tr>
          </table></td>
        </tr>
      </table>
    </div>
    <p align="center">&nbsp;</p>
    </body>
    </html>
    The flash actionscript looks like this
    Code:
    import mx.controls.Button;
    on (release) {
    	getURL("about_bowie.htm","iFrame");
    }
    I apologize for not having a live sample. My school is making me rebuild their website and it is beyond frustrating to build a 150pg website in just html with a mandatory flash navigation. Thanks for any input. Sorry for not having the code up in the first place.

    -Ali
    Last edited by ali//325i; 12-13-2006 at 07:16 PM.
    Distinct media *Coming Soon*

    "We followed white lines to the sunset "

  • #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
    I have a feeling this is a setting in your own browser. Can you post a live example somewhere so others can test it?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.celeritywebdesign.com/bowie/Template.htm <---here's a live demo of it. The first 3 links are real links that work at the bottom, news, this week, and important links. Hope this helps. I believe this breaks in IE as well, gotta figure that out too, UGH....why cant i just do this in asp.net

    Thanks for the help.

    -Ali
    Distinct media *Coming Soon*

    "We followed white lines to the sunset "

  • #6
    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
    Hmm James Bowie HS in Austin, Texas?

    Okay so your iframe has a name of the_iframe but according to the actionscript you posted they aren't the same. Did you change it?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes it is bowie highschool in austin, tx are you familiar with my school?

    Sorry about that. Refresh the browser a couple of times when you click the link. I just uploaded and made the necessary changes.

    Okay wait, not cool, it works here but not on my other browser when I am actually working at school. Could this possibly be a result of working on the site locally or is it just a browser preference?

    -Ali
    Last edited by ali//325i; 12-13-2006 at 10:24 PM. Reason: it works on my computer now????
    Distinct media *Coming Soon*

    "We followed white lines to the sunset "

  • #8
    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
    Hmm before you uploaded the new one it didn't work but now you uploaded this one it works for me just fine. Are you sure you can't use any server side languages? What about php? Can you use php?

    ps yes I'm familiar with your school. I went to crockett '03.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #9
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh thats really close to here.

    I am starting to believe it might have been a browser preference. But i am not 100% sure. Actually, when I view it locally it doesn't work, only when its actually hosted on the web. This is starting to confuse me lol. As long as it works when its hosted thats all I care about. Thanks for the help.

    -Ali
    Distinct media *Coming Soon*

    "We followed white lines to the sunset "


  •  

    Posting Permissions

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