title: Firefox and Chrome not loading a script from a coldfusion include?
body: <p>I've inherited some coldfusion code that generally works fine.</p>
  
  <p>The problem I'm having is on a page that has a cfinclude that refuses to load one particular script. It wouldn't bother me nearly as much if it didn't load the script the line before it, but it does.</p>
  
  <p>Firefox doesn't even attempt to get the script (as far as fiddler can see), and chrome fails to get it as well (unless you have that page open when you open chrome, in which case it works until you refresh the page). Internet Explorer, however, is doing great with this and loading it just fine!</p>
  
  <p>You can see the live page <a href="http://carnegielibrary.org/locations/main" rel="nofollow">here</a>. The top "ad" on the right should fade out and fade in a new ad every 4 seconds.</p>
  
  <p>This is where the script is called (adrotator.js). the jQuery.js is getting loaded fine, and the <code>alert</code> I put in also works just fine (above or below the script that isn't loading):</p>
  
  <pre><code>&lt;cfsilent&gt;
      &lt;!--- THIS IS THE LIST OF LARGE ADS FOR IN THE LARGE AD ROTATOR ---&gt;
      &lt;cfinclude template="ads/adlist_inc.cfm"&gt;
      &lt;!--- PUT IN THE NUMBER OF LARGE ADS HERE ---&gt;
      &lt;cfset adListLarge = GetNumAds("large", 0)&gt; &lt;!--- 0 means all the ads ---&gt;
  &lt;/cfsilent&gt;
  &lt;script language="javascript" type="text/javascript" src="/locations/js/jquery.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      alert("test!") &lt;!--- WHY DOES THIS WORK ---&gt;
  &lt;/script&gt;
  &lt;!--- WHEN THIS DOESN'T WORK? ---&gt;
  &lt;script language="javascript" type="text/javascript" src="/locations/js/adrotator.js"&gt;&lt;/script&gt;
  
  &lt;div id="spotlight_ad_top"&gt;
  &lt;cfoutput&gt;&lt;cfset temp = MakeAllAdImgTags(adListLarge)&gt;#temp#&lt;/cfoutput&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This page is called in by this:</p>
  
  <pre><code>&lt;!-- TOP SPOTLIGHT GRAPHICS IN RIGHT COLUMN --&gt;
  &lt;div id="locations-branchleaf-spotlight"&gt;
  &lt;!--- THIS PULLS THE LOCATION SPECIFIC AD IMAGE IF THERE IS ONE  ---&gt;
  &lt;cfoutput query="ReturnLocationInfo"&gt;
          &lt;cfinclude template="../#initials#/spotlightcontent_inc.cfm"&gt;
  &lt;/cfoutput&gt;
  &lt;!-- THIS DISPLAYS THE LOCATION-WIDE PROMOTIONAL SPOTLIGHT --&gt;
  &lt;cfinclude template="/locations/includes/spotlightcontent_inc.cfm"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Which in turn is called by this:</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;!--- THIS IS THE INCLUDED PAGE FOR EACH LOCATION'S HOME PAGE INDEX.CFM ---&gt;
  &lt;cfset PAGE_TITLE = ReturnLocationInfo.name &amp; " - Carnegie Library of Pittsburgh"&gt;
  &lt;title&gt;&lt;cfoutput&gt;#PAGE_TITLE#&lt;/cfoutput&gt;&lt;/title&gt;
  &lt;cfinclude template="/includes/header-locations-branchleaf_inc.html"&gt;
  &lt;cfinclude template="../breadcrumb_inc.html"&gt;
  
  &lt;div id="content"&gt;
  &lt;!-- THIS BRANCH/DEPARTMENT'S NAME, DUMP THE DASH IF IT IS THE pop-up --&gt;
  &lt;h1&gt;&lt;cfif locationID is 92&gt;&lt;cfelse&gt;CLP &amp;ndash; &lt;/cfif&gt;&lt;cfoutput&gt;#ReturnLocationInfo.name#&lt;/cfoutput&gt;&lt;/h1&gt;
  &lt;!-- BRANCH LEAF - LEFT COLUMN: LOCATION PHOTO &amp; CONTACT INFO, HOURS EVENTS, LINKS  --&gt;
  &lt;div id="leftcolumn"&gt;
  &lt;!-- 1: LOCATION'S PHOTO/CONTACT INFO WITH LINKSTO DIRECTIONS AND CONTACT FORM --&gt;
  &lt;cfinclude template="information_inc.cfm"&gt;
  
  &lt;!-- 2: LOCATION'S EMERGENCY NOTICE PULLED FROM TAB MGR NOTICES (SPOTLIGHTS) --&gt;
  &lt;cfinclude template="notice_inc.cfm"&gt;
  
  &lt;!-- 3: LOCATION'S HOURS GRID --&gt;
  &lt;cfinclude template="hours_inc.cfm"&gt;
  
  &lt;!-- Testing out location specific notifications! --&gt;
  &lt;cfinclude template="notification_inc.cfm"&gt;
  
  &lt;!-- 4: LOCATION'S EVENTS --&gt;
  &lt;!--- IF THIS IS THE PCCENTER (13) OR JCEC (6), INCLUDE THE programs_inc.cfm IN /locations/pccenter/ ---&gt;
  &lt;cfif locationID IS 13 or locationID IS 6&gt;
      &lt;cfinclude template="/locations/pccenter/programs_inc.cfm"&gt; 
  &lt;cfelse&gt;
      &lt;cfinclude template="programs_inc.cfm"&gt;
  &lt;/cfif&gt;
  
  &lt;!-- 5: LINKS FOR LOCATION --&gt;
  &lt;cfinclude template="links_inc.cfm"&gt;
  
  &lt;!-- 6: STAFF PICK FOR LOCATION IF ONE EXISTS--&gt;
  &lt;cfinclude template="staffpick_inc.cfm"&gt;
    &lt;/div&gt; &lt;!--//end leftcolumn --&gt;
  
    &lt;!-- BRANCH LEAF - RIGHT COLUMN: SPOTLIGHT, FLICKR PHOTO GALLERY --&gt;
    &lt;div id="rightcolumn"&gt;
  &lt;!--- LOCATION'S UNUSED MAP AND DIRECTIONS
  &lt;cfinclude template="directions_inc.cfm"&gt;  ---&gt;
  &lt;!-- 9. THE SPOTLIGHT AD - FORMERLY TOPAD --&gt;
  &lt;cfinclude template="spotlight_inc.cfm"&gt;
  
  &lt;!-- 10: PHOTOS TAGGED WITH THIS BRANCH IN FLICKR --&gt;
  &lt;cfinclude template="gallery_inc.cfm"&gt;
    &lt;/div&gt; &lt;!--//end rightcolumn --&gt;
  &lt;/div&gt; &lt;!--//end content --&gt;
  &lt;cfinclude template="/includes/footer_inc.html"&gt;
  </code></pre>
  
  <p>Is there something I'm missing why it won't load the script? If I load the script in a new tab, it connects and displays it just fine.</p>
  
  <p>Here's the script:</p>
  
  <pre><code>var activeAdNum = 0;
  var totAds = 0;
  var adSpeed = 4*1000;
  var userBusy = false;
  
  rotate_ads = function() {
    if (userBusy){
      window.setTimeout(rotate_ads, adSpeed);
      return;
    }
    jQuery(function(){
      nextAdNum = (activeAdNum % totAds) + 1;
      $("#rotating_ad_"+activeAdNum).fadeOut(500, function(){ 
        $("#rotating_ad_"+activeAdNum).removeClass("rotating_ad_active").addClass("rotating_ad_inactive");
        $("#rotating_ad_"+nextAdNum).fadeIn("slow", function(){
          $("#rotating_ad_"+nextAdNum).removeClass("rotating_ad_inactive").addClass("rotating_ad_active");
          activeAdNum = nextAdNum;
        });
      });
    });
    window.setTimeout(rotate_ads, adSpeed);     
  }
  
  jQuery().ready(function() { 
    $(".rotating_ad").hover(
      function(){
        userBusy = true;
      },
      function(){
        userBusy = false;
      }
    );
    var adCount = 0;
    $(".rotating_ad").each(function(){adCount++;});
    totAds = adCount;
    if (totAds &gt; 0){
      activeAdNum = 1;
    }
  
    window.setTimeout(rotate_ads, adSpeed);
  });
  </code></pre>