The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery local

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #28916


    I have a trouble running jQuery on my local server on my computer. I have mysql and Apache running and working. But i get the error Uncaught ReferenceError: jQuery is not defined when I open the page.


    The page works fine when i run it from "the folder" (not with the server) but since I what to be able to use Ajax functions i need to make i work on my local server as well.

    Rob MacKay

    You have links to 2 scripts there:

    <script src="/js/jquery-1.4.2.min.js" …
    <script src="js/colorbox/jquery.colorbox-min.js" …

    Notice you have a "/" at the start of the first one, which is your jQuery lib – I would try removing that first and see what happens :)


    It didn’t work. But i solved the problem by linking the script from google instead. Have no idea why it didn’t work with the local file. Thanks anyway.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.