Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I suspect the problem is that you are not serving jquery-1.7.2.min.js from your server, so the web page is not loading jquery, hence no $. First, try referencing a hosted jquery and see if that fixes your problem.</p> <pre><code>&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>Although not totally relevant to your problem, if you are building a public website, then it is generally a good idea to reference hosted jquery (and other libs) as your users will probably have a locally cached copy already (thanks to other sites which did the same thing). See <a href="http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/" rel="nofollow">http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/</a> for a reasonable explanation of this.</p> <p>Generally, though, you are going to want to serve some static files: your own css and js, images and the like. There are --<a href="http://www.sitepoint.com/serving-static-files-with-node-js/" rel="nofollow">plenty</a>--<a href="http://www.thecodinghumanist.com/blog/archives/2011/5/6/serving-static-files-from-node-js" rel="nofollow">of</a>--<a href="http://fromanegg.com/post/18352790356/how-to-make-a-node-js-static-file-server-part-1" rel="nofollow">posts</a>-- describing how to do this longhand with node, but you may want to look at a dedicated module like this: <a href="https://github.com/cloudhead/node-static" rel="nofollow">https://github.com/cloudhead/node-static</a></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