ReG:Error: Syntax error, unrecognized expression: http://some.serve.com/image-tn.png
Hi ya,
I am using jquery 1.10.2 minified version (which is coming from struts jquery plugin) recently we have upgraded from lower version to jquery 1.10.2 we noticed some weird behaviour of image tags .
I am using an ajax call to retrieve image urls (these were hosted on a hosting server) and dynamically adding to the page .
$.ajax({
type: "GET",
url: "retrieveImages.action",
data: "design.id="+$('#designTemplateVersionId').val(),
dataType: "json",
success: function(data){
for(var i=0; i<data.length;i++){
$('div[id='some']').append('<img height="80" width="80" onclick="highlight1(this)" src="'+data[i]+'"></img>');
highlight(
$('div[id='some']').find('img'));
}
}
});
After the update of version the above function causing
Error: Syntax error, unrecognized expression: http://some.serve.com/image-tn.png
and sending some random request to server .
|
www.ourcompany.com/designer?design.id=10124&_=1400229850706
|
|
|
|
and the script stops working ..
Could you please help us is there any new changes added to the way jquery interpreting image url's ???