2012-11-09 3 views
2
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) { 
    } 
}); 

Visual Studio iis에서 프로그램을 실행하면이 기능이 작동합니다. 호스트 웹 사이트에서 코드를 실행할 때가 아닙니다. 수단은 :solr은 호스팅 된 iis가 아닌 로컬 iis에서 작동합니다.

내가 그는 IE에서 작동하지

http: //192.168.9.185/KLMS/CustomGoogleSearch.aspx 

URL을 사용하는 경우.

하지만 난 확인 메시지와 함께 IE에

http: //localhost:56332/KLMS/CustomGoogleSearch.aspx 

URL의 작업 벌금을 사용할 때.

크로스 도메인 아약스를 호출하고 있습니다.

+0

가능한 복제본은 [IE에서 작동하지 않습니다] (http://stackoverflow.com/questions/13307309/solr-is-not-working-in-ie) – Jayendra

답변

0

도메인 간 문제로 인해 IE가 작동하지 않습니다.

그래서 XDomainRequest()를 추가해야합니다. See this

관련 문제