Forums

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
    Posts
  • #28916
    Blankforte
    Member

    Hello,

    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.

    Code:





    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.

    #75050
    Rob MacKay
    Participant

    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 :)

    #75051
    Blankforte
    Member

    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.