KeithMcElroy
asked on
ajax jquery over vpn
the following returns error of 0.
I am on a pc with vpn access to network with ip number referenced
How fix?
$(document).ready(function (){
$.ajax({
type: "POST",
url: "http://10.247.161.60/erp/xml/schema/custom.xml",
data: xmlContent,
contentType: "text/xml",
dataType: "xml",
success: function(xml){
alert(xml.xml);
},
error: function(xhr){
alert(xhr.status);
}
})
})
I am on a pc with vpn access to network with ip number referenced
How fix?
$(document).ready(function
$.ajax({
type: "POST",
url: "http://10.247.161.60/erp/xml/schema/custom.xml",
data: xmlContent,
contentType: "text/xml",
dataType: "xml",
success: function(xml){
alert(xml.xml);
},
error: function(xhr){
alert(xhr.status);
}
})
})
ASKER
It is on a desktop and needs to be. Any way to submit without same up?
You can't do Ajax across domains you run into the same origin policy. You need to create some sort of proxy or hack it by using a hidden iframe.
ASKER
Thehidden frame sounds like the answer I was looking for. How does it work to overcome the problem.
use an old browser
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you for the breadcrumbs. appreciated!
it must match with : http://10.247.161.60/