var urlsearch = "http://192.168.10.113:8080/collective-intellegence/StoreClicks?userid=" + userId + "&query=" + query;
//Inserted data in the database.
$.ajax({
type: 'POST',
url: urlsearch,
dataType: 'json',
success: function (data) {
}
});
this is working when i run the program in visual studio iis. not when i run the code in a host website. Means:
when i use
http: //192.168.9.185/KLMS/CustomGoogleSearch.aspx
url its not working in IE only.
but when i use
http: //localhost:56332/KLMS/CustomGoogleSearch.aspx
url its working fine in IE with a confirm message.
I am doing a cross domain ajax call.
This is not working IE due to cross domain issue.
So you have to add XDomainRequest(). See this
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.