$.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...
});
{
//do something once the script has loaded...
});
But…
Full ajax call works!
$.ajax(
{
type: 'GET',
url: 'http://domain.com/views/pc/js/ext/jquery.livesearch.min.js',
success: function(data)
{
log(data);
//do something once the script has loaded...
},
error: function(xhr, textStatus, errorThrown)
{
alert('ajax loading error... ... '+widgetId+' '+contentUrl);
return false;
}
});
{
type: 'GET',
url: 'http://domain.com/views/pc/js/ext/jquery.livesearch.min.js',
success: function(data)
{
log(data);
//do something once the script has loaded...
},
error: function(xhr, textStatus, errorThrown)
{
alert('ajax loading error... ... '+widgetId+' '+contentUrl);
return false;
}
});
Any ideas???


