$.getScript is causing this strange error, I’m not sure why it is causing an error loading each character in the url as a seperate request. I’ve seen this before but not can’t remember why it is doing it. Any ideas?!?! $.getScript() loading each character in the url…


$.getScript('http://domain.com/views/pc/js/ext/jquery.livesearch.min.js', function()
      //do something once the script has loaded...


Full ajax call works!

    type: 'GET',
    url: 'http://domain.com/views/pc/js/ext/jquery.livesearch.min.js',
    success: function(data)
        //do something once the script has loaded...
    error: function(xhr, textStatus, errorThrown)
        alert('ajax loading error... ... '+widgetId+' '+contentUrl);
        return false;

Any ideas???

Sam Deering is a Front-end Web Developer who specialises in JavaScript & jQuery. Sam is driven and passionate about sharing his knowledge to educate others.

Free Guide:

How to Choose the Right Charting Library for Your Application

How do you make sure that the charting library you choose has everything you need? Sign up to receive this detailed guide from FusionCharts, which explores all the factors you need to consider before making the decision.

  • http://www.itarticle.net/ ITarticle

    Thanks for the code….

  • http://www.facebook.com/profile.php?id=100000606151004 Tomas Katysovas

    that’s the most funny error I’ve ever seen :)

Special Offer
Free course!

Git into it! Bonus course Introduction to Git is yours when you take up a free 14 day SitePoint Premium trial.