Note that there are some explanatory texts on larger screens.

plurals
  1. POJquery failure after site went live
    text
    copied!<p>EDIT: posted head code EDIT 2: clarification on php</p> <p>I have been designing a site for weeks using JQuery. I don't have a local server or a testing server so I just created a directory through FTP, '/testing'. Everything was working great in the testing directory.</p> <p>I attempted to go live tonight by moving all the files in '/testing' to the root directory and I changed all file paths and script sources accordingly. The site loads, but everything related to JQuery is non-functional. Javascript console gives errors of (just as an example from a plugin):</p> <blockquote> <p>'$.os.name' is not a function</p> </blockquote> <p>I'm at loss for what to do. I changed the paths referencing the JQuery library, installed a fresh copy of JQuery (to a new directory), etc.</p> <p>There is a wordpress installation in a different directory '/blog'. I've read about some compatibility issues with wordpress, but that seems to be related to using JQuery <em>inside</em> wordpress, which I am not.</p> <p>Here is the head code:</p> <pre><code>&lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;link href="main.css" rel="stylesheet" type="text/css"&gt; &lt;link href="jquery.lightbox-0.5.css" rel="stylesheet" type="text/css"&gt; &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="jq.browser.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="compatible.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="nav.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="jquery.lightbox-0.5.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(function() { $('a.lightbox').lightBox(); }); &lt;/script&gt; &lt;title&gt;Pearce Images&lt;/title&gt; &lt;script type="text/javascript" src="slider.js"&gt;&lt;/script&gt; &lt;link href="slider.css" rel="stylesheet" type="text/css"&gt; &lt;/head&gt; </code></pre> <p>It's worth noting that all the pages are in PHP. I'm not a PHP developer, I only use 1 function: require_once('some.file.php'). (sorry for no code markup, but I just can't get a handle on this markdown thing). I just use that to pull the same code for a header and footer for all the pages, that way if changes need to be made, I only have to change one chunk of code.</p> <p>Your help is greatly appreciated.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload