Grow your CSS skills. Land your dream job.

Internet explorer not loading JS

  • # August 27, 2009 at 10:31 pm

    Help guys,

    Internet explorer isnt loading my javascript which is throwing my whole page off.
    The site works great in firefox and safari.

    The bottom is getting loaded through an ajax request onload and im using the cycle plugin for the bulliten board pic on the right. Any suggestions?

    Thanks!

    Paul

    imperativedesign.net

    # August 28, 2009 at 2:08 pm

    how are you testing? when I test javascript on my computer, I have to tell I.E every time to load the script, otherwise, it doesn’t do it. Once on the web, it loads. You need to post code, post the link to your site. provide something for us to troubleshoot

    # August 28, 2009 at 2:19 pm

    Thanks for taking a look cybershot. I’m testing just
    by using friends ie computers and loading the page.
    I’m at a bit of a disadvatage since I have. Mac and can’t run ie.
    The site is
    imperativedesign.net

    the head is being loaded by a php require.
    I’m using jquery plugin cycle and lightbox for the
    slideshow.
    The bottom should have a contact form onload
    that displays using jquery and ajax.

    Thanks again for taking a look.
    I really appreciate it.

    von
    # August 28, 2009 at 8:48 pm

    When I checked the site in IE I got the following error.

    Quote:
    Webpage error details
    Message: Unknown runtime error
    Line: 710
    Char: 10
    Code: 0
    URI: http://imperativedesign.net/js/rssReplay.js
    # August 29, 2009 at 12:42 am

    well, I can’t tell much from what I am seeing here. I like the design. There is an empty script tag in your head, not sure why. I would think at this point that the only way you are going to get the help you need is to package up the code with the required pictures and put it up on here to be downloaded so that we can troubleshoot the problem. It’s hard to make changes to the code or spot errors when you can’t play with it. Maybe post the code that runs it. You should always do that in the future when asking a code question.

    # August 29, 2009 at 12:57 am

    One other thing I would recommend is running your code through the validator. This has solved many problems in the past for me as it can find errors that your eyes miss. I ran your code through and it found 18 errors. One error on every script tag you have. Maybe this is causing your problem. I would work to solve all these issues and if it still don’t work when you get them solved, come back and let us know.

    http://validator.w3.org/#validate_by_input

    # August 29, 2009 at 1:24 am

    Thank you so much guys, I appreciate all the comments.
    I have really been reading a lot and I want to get better and make this my day job.

    Im taking the empty script tag out right now and running the validator and making the discussed changes as we speak.
    I will put another post on and let you guys know what its doing.
    Here is the scripts.php code as well as the index.
    @cybershot, how would I package the code up on here and make it available for download? This is the first time Ive used a forum.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
    <!– saved from url=(0014)about:internet –>
    <html xmlns="http://www.w3.org/1999/xhtml"&gt;
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="description" content="We are an aggresive web design firm that focuses on custom websites to reach readers and buyers. We build content management systems, blogs, shopping carts and more. Give us a call." />
    <meta name="verify-v1" content="0EvxNrGp912ZYVeLSyyGdOOBHDmrvhLw9fQB+Ofdbm8=" >
    <meta name="keywords" content="Atlanta, Buford, Gwinnett, Web Design, web hosting, email hosting, web development, internet site, website, cms, content management system, seo" />
    <meta name="distribution" content="global" />
    <meta name="robots" content="follow, all" />

    <meta name="language" content="en, sv" />
    <meta name="verify-v1" content="lcxd35qMg58xOnMzOppqvxK8KV2ekGFub+vox/FJuyQ=" />

    <meta name="subject" content="Internet Business" />

    <meta name="Classification" content="Web Design , Online Presence" />
    <meta http-equiv="Expires" content="never" />
    <meta http-equiv="PRAGMA" content="NO-CACHE" />

    <title>Imperative Design – Atlanta, Buford, Suwannee, Duluth, Gwinnett, Gainesville, Web Design, Website Design, GA, CMS, SEO, Search Engine Optimization. ecommerce, Shopping Cart</title>

    <link href="/css/imperative.css" rel="stylesheet" type="text/css" />
    <link rel="/site_images/apple-touch-icon.png" href="/customIcon.png"/>
    <link rel="stylesheet" type="text/css" href="/css/jquery.lightbox-0.5.css" media="screen" />

    <!–all js goes below –>
    <script src="/js/jquery.js" type="text/javascript" /></script>
    <script src="/js/imperative.js" type="text/javascript" /></script>
    <script src="/js/jquery.cycle.js" type="text/javascript" /></script>
    <script src="/js/jquery.lightbox-0.5.js" type="text/javascript"></script>
    <script src="./js/validate_plugin.js" type="text/javascript" /></script>
    <script type="text/javascript"></script>

    <?php
    ob_start();
    session_start();
    require("./includes/scripts.php");
    $username = $_POST[‘username’]; ?>
    </head>

    <!– body start –>
    <body>
    <div id="outer_wrapper">
    <div id="maindiv">
    <div id="logo"><a href="index.php" class="hit_box" alt="Home"></a></div><!–end logo–>

    <?php require_once("./includes/panel.php");?>

    <div id="bulliten_board">
    <div id="left_picture" "#middle"><p>Click here to find out more about Imperatives’ consultation services. Lets make your first impression be the right impression.</p>
    <div class="paper_services"><a href="#footer" id="services" name="top" >
    </div><!–end paper_services –>
    </div><!– end left picture –>

    <!– mid_picture –>
    <div id="mid_picture">
    <div id="newsheadlines">

    <?php include_once("./js/news.js"); ?>

    </div><!–end of newsheadlines–>
    </div><!–end of mid_picture–>

    <div id="right_picture">
    <a href="site_images/portfolio_pics/imperative_old.png"><img src="site_images/portfolio_pics/imperative_old_slider.png"></a>
    <a href="site_images/portfolio_pics/creative_castle.png"><img src="site_images/portfolio_pics/creative_castle_slider.png"></a>
    <a href="site_images/portfolio_pics/carrolls.jpg"><img src="site_images/portfolio_pics/carrolls_slider.png"></a>
    </div><!–end right_picture–>

    </div><!– end bulliten board –>

    <div id="current_notebook_paper"><div id="cedge">
    <p>Every customer that sees your web page is shaking your hand. Are you making the right impression?</p>
    <p>Put your page on the web and watch your business explode. Make your business a consumer <b>Imperative.</b></p>
    </div></div><!–end current_notebook_paper–>

    <div class="who_we_are_pic">
    <a href=""></a>
    </div><!–end who_we_are_pic–>
    <div id="current_sticky">
    <a href="" id="marketing_plan" class="sticky">Marketing Plan</a>
    <a href="" id="why_were_the_best" class="sticky">Why we are the best.</a>
    </div><!–end current sticky–>

    <div id="coffee_cup"></div><!–end of stapler–>

    <div id="bottom_body" name="footer">
    <div class="bottom_body_format">

    </div>
    </div><!–end bottom_body–>

    </div><!–end maindiv–>
    </div><!–end outer wrapper–>

    <!–Google Analytics–>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl.&quot; : "http://www.&quot;);
    document.write(unescape("%3Cscript src=’" + gaJsHost + "google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-10395310-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>

    </body>
    </html>[code]Thank you so much guys, I appreciate all the comments.
    I have really been reading a lot and I want to get better and make this my day job.

    Im taking the empty script tag out right now and running the validator and making the discussed changes as we speak.
    I will put another post on and let you guys know what its doing.
    Here is the scripts.php code as well as the index.
    @cybershot, how would I package the code up on here and make it available for download? This is the first time Ive used a forum.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
    <!– saved from url=(0014)about:internet –>
    <html xmlns="http://www.w3.org/1999/xhtml"&gt;
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="description" content="We are an aggresive web design firm that focuses on custom websites to reach readers and buyers. We build content management systems, blogs, shopping carts and more. Give us a call." />
    <meta name="verify-v1" content="0EvxNrGp912ZYVeLSyyGdOOBHDmrvhLw9fQB+Ofdbm8=" >
    <meta name="keywords" content="Atlanta, Buford, Gwinnett, Web Design, web hosting, email hosting, web development, internet site, website, cms, content management system, seo" />
    <meta name="distribution" content="global" />
    <meta name="robots" content="follow, all" />

    <meta name="language" content="en, sv" />
    <meta name="verify-v1" content="lcxd35qMg58xOnMzOppqvxK8KV2ekGFub+vox/FJuyQ=" />

    <meta name="subject" content="Internet Business" />

    <meta name="Classification" content="Web Design , Online Presence" />
    <meta http-equiv="Expires" content="never" />
    <meta http-equiv="PRAGMA" content="NO-CACHE" />

    <title>Imperative Design – Atlanta, Buford, Suwannee, Duluth, Gwinnett, Gainesville, Web Design, Website Design, GA, CMS, SEO, Search Engine Optimization. ecommerce, Shopping Cart</title>

    <link href="/css/imperative.css" rel="stylesheet" type="text/css" />
    <link rel="/site_images/apple-touch-icon.png" href="/customIcon.png"/>
    <link rel="stylesheet" type="text/css" href="/css/jquery.lightbox-0.5.css" media="screen" />

    <!–all js goes below –>
    <script src="/js/jquery.js" type="text/javascript" /></script>
    <script src="/js/imperative.js" type="text/javascript" /></script>
    <script src="/js/jquery.cycle.js" type="text/javascript" /></script>
    <script src="/js/jquery.lightbox-0.5.js" type="text/javascript"></script>
    <script src="./js/validate_plugin.js" type="text/javascript" /></script>
    <script type="text/javascript"></script>

    <?php
    ob_start();
    session_start();
    require("./includes/scripts.php");
    $username = $_POST; ?>
    </head>

    <!– body start –>
    <body>
    <div id="outer_wrapper">
    <div id="maindiv">
    <div id="logo"><a href="index.php" class="hit_box" alt="Home"></a></div><!–end logo–>

    <?php require_once("./includes/panel.php");?>

    <div id="bulliten_board">
    <div id="left_picture" "#middle"><p>Click here to find out more about Imperatives’ consultation services. Lets make your first impression be the right impression.</p>
    <div class="paper_services"><a href="#footer" id="services" name="top" >
    </div><!–end paper_services –>
    </div><!– end left picture –>

    <!– mid_picture –>
    <div id="mid_picture">
    <div id="newsheadlines">

    <?php include_once("./js/news.js"); ?>

    </div><!–end of newsheadlines–>
    </div><!–end of mid_picture–>

    <div id="right_picture">
    <a href="site_images/portfolio_pics/imperative_old.png"><img src="site_images/portfolio_pics/imperative_old_slider.png"></a>
    <a href="site_images/portfolio_pics/creative_castle.png"><img src="site_images/portfolio_pics/creative_castle_slider.png"></a>
    <a href="site_images/portfolio_pics/carrolls.jpg"><img src="site_images/portfolio_pics/carrolls_slider.png"></a>
    </div><!–end right_picture–>

    </div><!– end bulliten board –>

    <div id="current_notebook_paper"><div id="cedge">
    <p>Every customer that sees your web page is shaking your hand. Are you making the right impression?</p>
    <p>Put your page on the web and watch your business explode. Make your business a consumer <b>Imperative.</b></p>
    </div></div><!–end current_notebook_paper–>

    <div class="who_we_are_pic">
    <a href=""></a>
    </div><!–end who_we_are_pic–>
    <div id="current_sticky">
    <a href="" id="marketing_plan" class="sticky">Marketing Plan</a>
    <a href="" id="why_were_the_best" class="sticky">Why we are the best.</a>
    </div><!–end current sticky–>

    <div id="coffee_cup"></div><!–end of stapler–>

    <div id="bottom_body" name="footer">
    <div class="bottom_body_format">

    </div>
    </div><!–end bottom_body–>

    </div><!–end maindiv–>
    </div><!–end outer wrapper–>

    <!–Google Analytics–>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl.&quot; : "http://www.&quot;);
    document.write(unescape("%3Cscript src=’" + gaJsHost + "google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-10395310-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>

    </body>
    </html>

    # August 29, 2009 at 1:38 am

    Zip up the code for the slider and the images and then put that package on your server and post a link for us to dowload it and run on our computer. That way anyone here can play with the code to try and get it working

    # August 29, 2009 at 2:45 am

    Here is the link to the scripts.
    Let me know if there is any other scripts that might be necessary.

    http://www.imperativedesign.net/scripts.zip

    # August 29, 2009 at 3:18 am

    you did not pack up enough of the files. You need to include everything that it would require to run the script including the images. You want to include everything needed to run the slider on my computer so that I can troubleshoot it. Just having the scripts isn’t going to do it because I need to get the slider running on my computer to troubleshoot it.

    # August 29, 2009 at 8:58 am

    Here is the link for the site_images folder

    http://www.imperativedesign.net/site_images.zip

    Thank cybershot for taking the time to go over this with me.

    # August 29, 2009 at 8:16 pm

    there is something funky going on in your files. This piecing them together isn’t working for me. Your index file lookes messed up because you have a closing head tag but no opening head tag. You are going to need to package up the entire site and send it over for me to help. You have to many includes or missing code in the files that you sent for the slider to work. You didn’t include any css files you may be using. Once again, you need to include everything.. EVERYTHING.. that the slider needs to function, html, php, css whatever you are using. The idea is that I don’t want to spend 2 hours piecing your site together to check your code. That’s why I asked you to package everything up to get it working. But you keep leaving out stuff. I had to look for your panel.php file that you didn’t include. Do you see what I am getting at now. You need to send EVERYTHING.

    # August 30, 2009 at 1:48 am

    Hey man, the last two pieces are
    http://imperativedesign.net/css.zip
    http://imperativedesign.net/includes.zip

    and in case you need the first two again it was
    http://imperativedesign.net/scripts.zip
    http://imperativedesign.net/site_images.zip

    Thanks again for all your help :)

    Oh btw, im really not a moron, I have just never shared files across a forum and didnt know what all you needed.

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".