SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Mar 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Jquery help(not linking to page)

    Hello.
    I am brand new to Jquery. This question should be quite simple.
    I have copy and saved the Jquery "downloaded" file from the Jquery site, and saved it into "jquery.js".
    I have put this file into a folder, and when I try to call it, using "x.html" which is also in that folder, nothing happens.
    Any help? Thank you.

  2. #2
    SitePoint Addict goldensona's Avatar
    Join Date
    Jun 2011
    Posts
    226
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    did you link correctly in the html file? how do you call the jquery file? post your example code so only can help you

  3. #3
    SitePoint Member
    Join Date
    Mar 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have actually found a different way around my problem.
    It is different than the book, which is this:
    <head> <title>Hello jQuery world!</title>
    <script type='text/javascript' src='jquery-1.4-min.js'></script>
    <script type='text/javascript' src='script.js'></script>
    </head>

    I used this :
    <script src="jquery.js"></script>
    <script type="text/javascript">
    I believe my problem was the fact that I didn't have a script.js file. And since I was trying to call something I didn't have, the scripts that I actually had weren't given the proper tags.

    However, since I have your attention, if I did have a javascript file "script.js", I would use : <script type='text/javascript' src='script.js'></script> to call it, correct? I am assuming it would just put the file into the script tags, then run it.
    By the Way, Thank you.

  4. #4
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,752
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Yes you would call it like that .
    Always looking for web design/development work.
    http://www.CodeFundamentals.com


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •