0 Replies Latest reply on May 19, 2006 4:57 AM by an1baum

    Problems with javascript

    an1baum
      Hello,

      I have a big problem and I don't find a solution:

      I embeded a flash file (advertiser banner) in my html page.

      I want that is opening a popup window if the user clicks on the flash banner (see function OpenAdvertiser). There should be no getURL-Link in the flash file because the number of needed variables (e.g. BtrID, AdvID) could change (e.g. BtrID, AdvID, CustomerID...) and I could not adapt the flash files (because they are created by someone else). That's why i build a "<href='javascript penAdvertiser(156,149)..."-Tag in the html page.

      Now the problem: this works fine in firefox and opera browser but not in Internet Explorer 6.0.

      Why is it so? And how can I solve the problem?


      Here is the html code:

      <script src="../AC_RunActiveContent.js" type="text/javascript"></script>
      <script language="javascript">
      function OpenAdvertiser(BtrID, AdvID)
      {
      window.open("PR.aspx?BtrArt=B&BtrID="+BtrID+"&AdvID="+AdvID,"PR","toolbar=no,status=no,wi dth=925,height=580,scrollbars=yes,left=10,top=10,screenX=10,screenY=10");
      }

      </script>


      <a target=_self href='javascript penAdvertiser(156,149)'>
      <script type='text/javascript'>AC_FL_RunContent( 'codebase',' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','wid th','360','height','200','src','../Advertiser/dba','quality','high','pluginspage','http:// www.macromedia.com/go/getflashplayer','movie','../Advertiser/dba', 'wmode','transparent','bgcolor','#FFFFFF' ); </script>

      <noscript><object classid='clsid 27CDB6E-AE6D-11cf-96B8-444553540000' codebase=' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='360' height='200'>
      <param name='movie' value='../Advertiser/dba.swf' />
      <param name='quality' value='high' />
      <param name='bgcolor' value='#FFFFFF' />
      <param name='wmode' value='transparent' />
      <embed src='../Advertiser/dba.swf' wmode=transparent quality='high' bgcolor='#FFFFFF' pluginspage=' http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='360' height='200'></embed></object>
      </noscript></a>


      The java script file AC_RunActiveContent.js contains the function AC_FL_RunContent. The function causes that Idon't have to click embedded or "active" content before I interact with it (see http://www.adobe.com/devnet/activecontent/articles/devletter.html).

      function AC_FL_RunContent(){
      var ret =
      AC_GetArgs
      ( arguments, ".swf", "movie", "clsid 27cdb6e-ae6d-11cf-96b8-444553540000"
      , "application/x-shockwave-flash"
      );
      AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
      }

      Thank you very much for an answer.

      Andreas (from Germany)