Link to home
Start Free TrialLog in
Avatar of KeithMcElroy
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);
            }
      
          })
      })

Avatar of leakim971
leakim971
Flag of Guadeloupe image

what is the address of your page (the one doing the ajax call)?
it must match with : http://10.247.161.60/
Avatar of KeithMcElroy
KeithMcElroy

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.
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
Avatar of mrh14852
mrh14852

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you for the breadcrumbs.  appreciated!