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 8967909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:21:04+00:00 2026-06-15T17:21:04+00:00

I haven’t found anything, so hopefully I can get an answer here? I’m seeing

  • 0

I haven’t found anything, so hopefully I can get an answer here?

I’m seeing the following error when loading content on a php page of mine:

TypeError: $(…).load is not a function [Break On This Error]

$(document).load(function() {

So I took a look at my current jQuery settings, including source in Firebug, and confirmed the following:

  • jQuery 1.8.0 is loaded correctly
  • I’ve added conditional statement before load call to check if jQuery is populated.
  • Library that I am using has loaded
  • alerts before the document load are firing

Here is my code – Is there something not allowed with PHP include files and jQuery?:

<html>
<head> ...... </head>
<body>
    <div id='header'></div>

    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
    <script type="text/javascript" src="/js/jquery.nivo.slider.js"></script>
    <script type="text/javascript">

        $(window).load(function() {
            $('#slider').nivoSlider({
                animSpeed: 500,
                pauseTime: 5000,
                slices:40
            });
        });

    </script>

    <!-- Included file -->
    <div id='container'>
        <div style="height:245px;" id="wrapper">
                <div style="height:245px;" class="slider-wrapper theme-default">
                    <div style="height:245px;" class="nivoSlider" id="slider">
                        <img data-transition="sliceUpDownLeft" alt="" data-thumb="images/toystory.jpg" src="images/toystory.jpg">
                        <img title="This is an example of a caption" data-transition="sliceUpDownLeft" alt="" data-thumb="images/up.jpg" src="images/up.jpg">
                        <img data-transition="sliceUpDownLeft" alt="" data-thumb="images/walle.jpg" src="images/walle.jpg">
                        <img title="#htmlcaption" data-transition="sliceUpDownLeft" alt="" data-thumb="images/nemo.jpg" src="images/nemo.jpg">
                    </div>
                    <div class="nivo-html-caption" id="htmlcaption">
                        <strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>. 
                    </div>
                </div>

        </div>
    </div>
    <!-- End included file -->

    <div id='footer'></div>
</body>
</html>
  • 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-15T17:21:06+00:00Added an answer on June 15, 2026 at 5:21 pm

    PHP doesn’t care what goes on clientside – the code that runs on the browser (JavaScript) and your server (PHP) do not interact at all, even when PHP generates a page containing JavaScript.

    The only time they intersect is indirectly, when you use PHP to pre-populate JavaScript constants (usually a bad idea) or when the JavaScript uses GET/POST to send data back to a new instance of the script (standard practice.)

    So with that discounted, let’s look at your page in JSFiddle:

    http://jsfiddle.net/Rfh9A/

    It works fine there, though I had to point the NivoSlider link at GitHub. So now we have only a few options:

    1. Your actual code is different from what you posted
    2. You’re loading this page via AJAX and jQuery is already part of the parent document. This has caused issues for me in the past, particularly when you’re loading two different versions of the library. It might work if you change $ to jQuery, in case the library’s disabled the shorthand for compatibility.
    3. A JavaScript error in a part of the page not pasted (see answer 1) is preventing jQuery from instantiating.
    4. (Long shot) You’ve got a DNS problem or something on your local machine preventing the jQuery library from loading on your browser.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I haven't found a coherent answer to my quesion here :( My server's ISP
Haven't seen anything about it here but it seems to solve one of the
I haven't found a straight answer to how to make an animation in a
Haven't seen anything, but I have seen that you can create albums in the
Haven't found anything useful about this on the internet. I'm using my Windows 7
I haven't found any get equivalent to appendBytes. If I've understood getBytes correctly, that
I haven't done C++ in a while and can't figure out why following doesn't
I haven't found anything with the specific needs of my function to do this,
I haven't found a definite answer to this yet. Lots of apps let you
I haven't been able to get this working and all of the sample code

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.