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

  • Home
  • SEARCH
  • 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 8353513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:17:12+00:00 2026-06-09T09:17:12+00:00

I am trying to imported some javascript files from some code hosts. $.when( $.getScript(‘http://pingzi.googlecode.com/svn-history/r30/branches/wangqi/web/jquery.window.min.js’),

  • 0

I am trying to imported some javascript files from some code hosts.

    $.when(
        $.getScript('http://pingzi.googlecode.com/svn-history/r30/branches/wangqi/web/jquery.window.min.js'),
        $.getScript('http://mottie.github.com/tablesorter/js/jquery.tablesorter.js'),
        $.getScript('http://tconnell.com/samples/scroller/lib/jquery.tablesorter.scroller.js'),
        $.getScript('http://code.highcharts.com/stock/highstock.js'), 
        $.Deferred(
            function(deferred) { 
                $(deferred.resolve);
            }
        )
    ).done(function() {  
       // my function goes here....
    });

When I try to call these URLs to import js files, the URLs will append ?_=1344036242417 and then I could not actually get to the script file I want.

i.e.
"NetworkError: 404 Not Found - http://pingzi.googlecode.com/svn-history/r30/branches/wangqi/web/jquery.window.min.js?_=1344036242417"

Any one have ideas how to bypass this problem? Thank you in advance.

  • 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-09T09:17:14+00:00Added an answer on June 9, 2026 at 9:17 am

    That’s because caching in ajax is turned off by default in jQuery, to turn it on and remove the querystring do :

    $.ajaxSetup({ 
        cache: true 
    }); 
    

    but that could also affect other ajax calls that you don’t want to cache, there’s a lot more on this in the docs for getScript, and there’s even a little how-to on creating a cached getScript function called cachedScript.

    You can also enable caching in $.getScript by redefining the function with a new option to turn the cache on/off by passing true or false :

    $.getScript = function(url, callback, cache){
        $.ajax({
                type: "GET",
                url: url,
                success: callback,
                dataType: "script",
                cache: cache
        });
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to import an XSD file with some complex files from an imported
Im trying to rezise some images that are imported from a folder. It doesent
I am trying to clean up some HTML values that are imported from other
I am trying to incorporate some sample code I pulled from a site into
We're trying to create JPA mappings atop some read only tables we imported from
I've been trying to use mongo with some data imported, but I'm not able
I'm trying to remove a color from a picture imported (JPG) in Flash CS4
I am trying to insert data from one table that was imported from an
I was trying out some c++ code while working with classes and this question
I've imported some data from a CSV file in matlab. They are time series

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.