#1 2010-07-23 09:24:04

longge007
Member
Registered: 2010-06-22
Posts: 107

in ajax request, HttpServer can't be visited in LAN pc

in loacal pc, when i input "http://192.168.1.100/test.hml" which uses Ajax request. i can get some data. but when i input the same Address in LAN pc, the IE error prompts "refuse visit". perhaps it's in the diffrent domain. tell me why or how to config OS.

....//ajax request code
var oXmlHttp=zXmlHttp.createRequest(); //one ajax class
var url='http://192.168.1.100:8080/root/samplerecord/1";
var returnLen;
oXmlHttp.open("get",url,true);
....

oXmlHttp.open("get",url,true);
IE Error shows
The highlight line can't open or refuse visit.

Last edited by longge007 (2010-07-23 09:29:51)

Offline

#2 2010-07-23 10:32:45

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,134
Website

Re: in ajax request, HttpServer can't be visited in LAN pc

sounds like some FireWall problem here.

Googgle for it.

And there is a AddApplicationToXPFirewall() function in our SQlite3UI.pas unit to make it from your code.

Offline

#3 2010-07-23 12:59:28

longge007
Member
Registered: 2010-06-22
Posts: 107

Re: in ajax request, HttpServer can't be visited in LAN pc

it's cross domain problem, i am googling for it, thanks a lot

Offline

Board footer

Powered by FluxBB