$.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.
  • 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 :)

Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!