Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8845219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:41:06+00:00 2026-06-14T11:41:06+00:00

At the bottom of my page, I am a jquery function that does NOT

  • 0

At the bottom of my page, I am a jquery function that does NOT do an async call. It works fine in Chrome, FireFox. But in IE8 it says jQuery is undefined. What can be causing this?

<script src="/scripts/jquery" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
        jQuery.ajax( "dev/js/templates", {
                async : false,
                success: function (data) {
                    $("#tpl_scripts").html(data);
                }

    })

    </script>

As a note, the script is being returned from PHP with header as

<?php 
$script = file_get_contents('/libs/scripts/jquery.1.8.2');
if (extension_loaded("zlib") && (ini_get("output_handler") != "ob_gzhandler")) {
            ini_set("zlib.output_compression", 1);
    }

    header('Content-type: text/javascript');

echo $script;
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:41:07+00:00Added an answer on June 14, 2026 at 11:41 am

    This is going to be a long shot, but judging from your comments I have some idea what’s going on.

    You said that PHP concatenates multiple JavaScript files together and serves it in one go; this is generally a good idea (although I would go for static compilation and still use only the web server).

    Internet Explorer is notorious for being pedantic about comma placement in objects, e.g.

    var a = {
        x: 123,
        y: 456,
    }
    

    See that extraneous comma after the declaration of the y property? Most browsers don’t care about that stuff and most PHP developers always use it for convenience.

    Internet Explorer on the other hand bombs on this and stops running the rest of the code that follows. In your case, that could include jQuery if it was preceded by your own code (because John Resig would never make that “n00b” mistake :))

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an index page animation that I designed with jQuery that is not
Hi have a small entry form that is jquery driven. It works fine on
i have 3 rows div layout with footer on bottom of page, but i
On my site: http://alsite.com.br/solalev/ I have some elements on the bottom of page that
I have created a custom jQuery plugin that does some simple image resizing for
I've been working on a website that is very jQuery intensive in Chrome and
I have the following script, but when i move to a page that don't
Basically I have a jQuery function that checks if the user is near the
How would I, with Jquery, make a sticky footer that sticks to the bottom
At the bottom of page 5 is the phrase changes k to k ⊕

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.