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 6810765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:14:42+00:00 2026-05-26T20:14:42+00:00

i wrote code to download jquery file from google CDN first and if not

  • 0

i wrote code to download jquery file from google CDN first and if not download then i download from local machine.

here is my code

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"></script>
<script type="text/javascript">
    window.jQuery ||
    document.write("<script type='text\/javascript' src=<%= this.ResolveClientUrl("~/Scripts/jquery-1.6.2.min.js") %>><\/script>");
</script>

what is wrong in the above code. i check the url http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js and i saw this is valid url. i was sure that jquery file is not download because i watch it by firebug. in my case file is always is downloading from local machine……..need advise. thanks

  • 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-05-26T20:14:43+00:00Added an answer on May 26, 2026 at 8:14 pm
    <html>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"></script>
    <script type="text/javascript">
       function check()
       {
       alert("Jquery "+((window.jQuery)?"loaded":"not loaded"));
       $("body").css("background",((window.jQuery)?"green":"red"));
       }
    </script>
    <body onLoad="check()">
    
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So far i wrote a code to download a file from ftp server then
I wrote this code to download a file from an FTP server. When the
I wrote download excel file in my code. If I click download button I
I'm loading jQuery via Google's CDN using the following code. My main question is
I wrote some code to download some files from URLs, which I put in
So I wrote this short script (correct word?) to download the comic images from
Im trying to download daily a backup file from my server to my local
I wrote some code to read a file in my Java Servlet class. (I'm
I wrote a quick script to download files using LWP::Simple library and its getstore()
I wrote a method which exports values to excel file from an IEnumerable parameter.

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.