PHP include with jQuery
<p>I haven't found anything, so hopefully I can get an answer here?</p>

<p>I'm seeing the following error when loading content on a php page of mine:</p>

<blockquote>
  <p>TypeError: $(...).load is not a function [Break On This Error]    </p>
  
  <p>$(document).load(function() {</p>
</blockquote>

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

<ul>
<li>jQuery 1.8.0 is loaded correctly</li>
<li>I've added conditional statement before load call to check if jQuery is populated.</li>
<li>Library that I am using has loaded</li>
<li>alerts before the document load are firing</li>
</ul>

<p>Here is my code - Is there something not allowed with PHP include files and jQuery?:</p>

<pre><code>&lt;html&gt;
&lt;head&gt; ...... &lt;/head&gt;
&lt;body&gt;
    &lt;div id='header'&gt;&lt;/div&gt;

    &lt;script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="/js/jquery.nivo.slider.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;

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

    &lt;/script&gt;

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

        &lt;/div&gt;
    &lt;/div&gt;
    &lt;!-- End included file --&gt;

    &lt;div id='footer'&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
