Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7905379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:27:04+00:00 2026-06-03T10:27:04+00:00

Sorry guys , need to bring my old question back from the dead as

  • 0

Sorry guys , need to bring my old question back from the dead as Ive tried to get back into doing jquery – Im not sure if Im linking it wrong in my html side or what.

my Jquery is

$(document).ready(function() {
  if (navigator.appVersion.indexOf("Win") != -1) {
   // Computers runs windows
    $("a[href$='.pdf']").each(function() {
        this.href = this.href.replace("Volumes", "KP01DS0194TG");
    });
  }
  if (navigator.appVersion.indexOf("Mac") != -1) {
    // computer is a Mac
    $("a[href$='.pdf']").each(function() {
        this.href = this.href.replace("KP01DS0194TG", "Volumes");
    });
  }
});

Ive completely taken the linking out from my html , I pretty much scrapped it.
On Jsfiddle this coding with my html works PERFECTLY not a single hitch .

however when I linked it to my html it would not change.

so if you could please give me some tips – how do I go about linking my file called “jsquery.js” to the html – is that also all I need to link or is there something else (because I read the Jquery website and it said about downloading something from there but it went completely over my head) but yeah help would be amazing!

EDIT: http://jsfiddle.net/KJdjS/12/ Thats the link

Ninja Edit : when ever I change my html links in my index file to 3 “///” it will not work – it gives me an error , as dreamweaver automatically changes it to 5 “/////” when I add the link – but it auto changes to 2 “//” when I click on the link but on the mac side I need 3 “///”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T10:27:05+00:00Added an answer on June 3, 2026 at 10:27 am

    If your codes are in jsquery.js file load the files in this order.

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script type="text/javascript" src="js/jsquery.js"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry guys for noob question, need help. I'm try to use Sharekit - https://github.com/ShareKit/ShareKit
Sorry guys, Ive googled and still cant get my code to work. Not exactly
Sorry guys if this is a noob question. I need help on how to
Hey guys, sorry I am new to Jquery. I have always tried to do
Sorry, guys.I am quite new in mysql but I do need help from getting
Sorry guys, didn't know how to word this one. Still learning jquery and have
Sorry guys! i am so into the code! that i forgot to put the
I could be not more sorry guys - the question was a very wrong
Hello guys sorry if the question looks stupid to you. i have 3 tables
Sorry guys, it's another CSS height 100% (sortof) question... I have a layout like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.