Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-24-2010, 09:45 PM   PM User | #1
mortz
New to the CF scene

 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mortz is an unknown quantity at this point
Internet Explorer Display issue in IE, fine in FF

I won't even pretend to know what I'm doing. I'm just trying to update a few things on our company's website. We implemented live chat and some new graphics to accomodate our banner.

We use two main index files (one sorts by category and the other by manufacturer).

Originally these two files along with every single product page referenced the banner code from a javascript file named: header.js

This is fine in firefox but IE isn't too thrilled with it and does something fairly strange (at least to me).

Here's a link to the problem (open in IE): http://www.alamomotorsports.com/act/act.html

Here is the Java code

Code:
<div id="header_container">
  <div id="header">
    <div id="header_lh_cell"><a href="http://www.alamomotorsports.com"><img src="http://www.alamomotorsports.com/images/AMSTopper.jpg" alt="Jump to the Alamo Motorsports Homepage" /></a></div>
    <div id="header_center_cell">Orders over $150<br /><span class="bam">Ship Free!</span>*<br />
                                 <img src="http://www.alamomotorsports.com/images/multicard_bk_allt.gif" alt="Alamo Motorsports accepts Visa, Mastercard, and American Express" /></div>
    <div id="header_rh_cell" class="header_footer_links">
      Customer Support:<br />
      <span class="bam">800-880-0960</span><br />
      <form> 
        <input type="button" value="Email Us!" onClick="window.open('/emailus.html','mywindow','width=600,height=500')"> 
      </form>
    </div>
Also:

Code:
document.writeln("<div id=\"header_container\">  <div id=\"header\">    <div id=\"header_lh_cell\"><a href=\"http://www.alamomotorsports.com\"><img src=\"http://www.alamomotorsports.com/images/AMSTopper.jpg\" alt=\"Jump to the Alamo Motorsports Homepage\" /></a></div>    <div id=\"header_center_cell\">Orders over $150<br /><span class=\"bam\">Ship Free!</span>*<br />                                 <img src=\"http://www.alamomotorsports.com/images/multicard_bk_allt.gif\" alt=\"Alamo Motorsports accepts Visa, Mastercard, and American Express\" /></div>    <div id=\"header_rh_cell\" class=\"header_footer_links\">Customer Support:<br /><span class=\"bam\">800-880-0960</span><br /><form> <input type=\"button\" value=\"Email Us!\" onClick=\"window.open('/emailus.html','mywindow','width=600,height=500')\"> </form></div>    <div id=\"header_menu\">      <ul id=\"category\">        <li><a href=\"http://www.alamomotorsports.com/indexcat.html\">Shop By<br />Category</a></li>      </ul>      <ul id=\"manufacturer\">        <li><a href=\"http://www.alamomotorsports.com/indexman.html\">Shop By<br />Manufacturer</a></li>      </ul>      <ul id=\"info\">        <li><h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />Info</h2>        <ul>          <li><a href=\"http://www.alamomotorsports.com/contact_info.html\">Contact Us</a></li>          <li><a href=\"http://www.alamomotorsports.com/blowout.html\">Blowout Sale</a></li>          <li><a href=\"http://www.alamomotorsports.com/disclaim_shipping.htm\">Our Policies</a></li>          <li><a href=\"http://www.alamomotorsports.com/links.html\">Links</a></li>          <li><a href=\"http://www.alamomotorsports.com/most_popular.html\">Most Popular</a></li>        </ul>        </li>      </ul>      <ul id=\"showcart\">        <li><a href=\"http://www.cartserver.com/sc/cart.cgi?item=a-2309&amp;view.x=1\">Show My<br />Shopping Cart</a></li>      </ul>      <ul id=\"search\">        <li><form method=\"get\" action=\"http://www.alamomotorsports.com/cgi/search.pl\">                  <h2><label for=\"fdse_TermsEx\" >Search for: </label>                  <input name=\"Terms\" id=\"fdse_TermsEx\" />                  <input type=\"submit\" value=\"Go\"> </h2>                </form>        </li>      </ul>    </div><!--header_menu-->  </div><!--header--></div><!--header_container--><div id=\"content_container\"><div id=\"content\">");
Thank you for help in advance.
mortz is offline   Reply With Quote
Old 08-25-2010, 11:52 PM   PM User | #2
Oneilius
New to the CF scene

 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Oneilius is an unknown quantity at this point
I see the error in IE (" '_gat' is undefined"), but when I try to open the IE debugger, I'm told the source file isn't available from my location. Can you look in your JavaScript files for that page and find the reference to _gat and post the function where that variable is being referenced?
Oneilius is offline   Reply With Quote
Old 08-26-2010, 04:00 AM   PM User | #3
styks1987
New to the CF scene

 
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
styks1987 is an unknown quantity at this point
_gat is part of google analytics core.


Mike
styks1987 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:50 PM.


Advertisement
Log in to turn off these ads.