29 Replies Latest reply on Apr 24, 2013 12:38 PM by ionara17

    Javascript does not work when I move files to another drive

    ionara17

      I have a website that as an imbedded swf file created in Flash Builder. The html has a javascript code that controls the size of a table. Depending on how big the table is the website''s height increases or decreases. However this javascript only works when the files are in the D drive and when I ran the webpage from inside Dreamweaver. If I copy the files to another drive, the javascript does not work anymore if not inside D drive. It used to work before but  not. I got the data directly from the production server to make sure I was not making any major changes. The code in the production server works.  I have no idea why it is doing this. Can you guys offer any help? I've tried many things and nothing works. Thanks.

       

      Here is the html:

       

       

       

       

            

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml"  lang="en-US">

       

      <head>

      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

      <title>Texas Forestry Economic Impact</title>

      <style type="text/css">

       

       

      <script type="text/javascript">

      function updateSwfSize(myHeight, myWidth)

          {

          var flexibleGorillaSwf = swfobject.getObjectById("FlashID");

          flexibleGorillaSwf.height = myHeight;

          flexibleGorillaSwf.width = myWidth;

       

          }

       

       

      </script>

       

       

      <script type="text/javascript" src="swfobject.js">

       

      </script>

      <script type="text/javascript">

      swfobject.registerObject("FlashID", "10.0.0");

      </script>

       

      </head>

       

      <body id="body" >

       

       

      <div class="container">

       

      <table width="100%" border="0" cellpadding="0" cellspacing="0">

             <tr>

            <td bgcolor="#6f8d5c">

          <img src="assets/banner_maroon.png" width="960" height="120" usemap="#map-1" alt="Texas Forest Service " style="border:none;"/>

       

          <map name="map-1" id="imagemap">

          <area shape="rect" coords="26,5,139,115" href="About.html" alt="Link to Texas Forest Sector Economic Impact Home"/>    

          <area shape="rect" coords="142,3,582,27" href="About.html" alt="Link to Texas Forest Sector Economic Impact Home"/>

          <area shape="rect"  coords="159,27,324,46" href="EcoImpactTX.html" alt="Link to Texas Forest Sector Economic Impact Summary Tool" />

          <area shape="rect"  coords="755,47,1201,200" href= "http://txforestservice.tamu.edu/main/default.aspx" alt="Link to Texas Forest Service Website" />

           </map>

           </td>

        </tr>

            <tr>

          <td height="31" bgcolor="#6f8d5c"><a href="http://www.texasforestinfo.com">TexasForestInfo.com</a>  -  <a href="About.html"  >About</a>  -  <a href="Highlights.html">Highlights</a>  -  <a href="EcoImpactTX.html" target="_self"><span style="font-size:medium; font-weight:bold">Summary Tool</span></a>  -  <a href="Maps.html" target="_self">Maps</a>  -  <a href="Trends.html" target="_self">Trends</a>  -  <a href="Reports.html" target="_self">Download Reports</a>  -  <a href="FAQs.html" target="_self">FAQs</a>  -  <a href="ContactUs.html" target="_self"> Contact Us</a>  -  <a href="http://txforestservice.tamu.edu/main/default.aspx">TFS Home</a></td>

        </tr>

         <tr>

          <td height = "0" bgcolor="#FFFFFF"> </td>

        </tr>

      </table>

      <p><span style="font-size:x-large; color:#000">Summary Tool </span> <span style="font-style:italic">(click one of the buttons below to start)</span></p>

       

      <div class="swfcontainer">

        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="930" height="1000" id="FlashID" title="map" >

          <param name="movie" value="New_ecoimpact_april25th_newPDF.swf" />

          <param name="quality" value="high" />

          <param name="swfversion" value="6.0.65.0" />

          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->

          <param name="expressinstall" value="Scripts/expressInstall.swf" />

          <param name="SCALE" value="exactfit" />

       

          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->

          <!--[if !IE]>-->

          <object name="FlashID" data="New_ecoimpact_april25th_newPDF.swf" type="application/x-shockwave-flash" width="930" height="1000" pluginspage="http://www.adobe.com/go/getflashplayer" >

            <!--<![endif]-->

            <param name="quality" value="high" />

            <param name="swfversion" value="6.0.65.0" />

            <param name="expressinstall" value="Scripts/expressInstall.swf" />

            <param name="SCALE" value="exactfit" />

       

            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->

            <div>

              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>

              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>

              </div>

            <!--[if !IE]>-->

            </object>

          <!--<![endif]-->

        </object>

       

      </div>

      <p><!-- end .content --></p>

      <div class="footer">

        <table width="100%" border="0" cellpadding="0" cellspacing="0">

        <tr>

             <td width="0" height="31" bgcolor="#6f8d5c" ><a href="http://www.texasforestinfo.com"><span style="color:#FFF">TexasForestInfo.com</span></a>  -  <a href="About.html" >About</a>  -  <a href="Highlights.html"><span style="color:#FFF">Highlights</span></a>  -  <a href="EcoImpactTX.html"  target="_self"><span  style="color:#FFF; font-size:medium; font-weight:bold;" >Summary Tool</span></a>  -  <a href="Maps.html" target="_self"><span  style="color:#FFF;">Maps</span></a>  -  <a href="Trends.html" target="_self"><span  style="color:#FFF; " >Trends</span></a>  -  <a href="Reports.html" target="_self"><span  style="color:#FFF; ">Download Reports</span></a>  -  <a href="FAQs.html" target="_self"><span  style="color:#FFF">FAQs</span></a>  -  <a href="ContactUs.html" target="_self"> <span  style="color:#FFF">Contact Us</span></a>  -  <a href="http://txforestservice.tamu.edu/main/default.aspx"><span  style="color:#FFF">TFS Home</span></a></td>

        </tr>

      </table>

      </div>

      <div class="footer2">

      <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">

        <td width="108" style="padding-top:5px; "  > </td>

              <td width="750" style="line-height: 16px; padding-top: 5px; text-align: center; color:#666; padding-left:12px; padding-bottom:5px">

                Copyright © 2012 Texas  Texas A&amp;M Forest Service. All rights reserved. <br />

                  <a href='http://tfsweb.tamu.edu/main/article.aspx?id=6698' target='_blank' style="color:#666; padding-left:12px; ">Accessibilty, Site Policies & Public Notices</a>

       

       

              </td>

              <td width="102" style="text-align: right; padding-right: 22px"> </td>

      </table>

      </div>

      </div>

       

       

       

      </body>

      </html>