tags:

views:

12

answers:

1

I'm using an ajax call with jquery for calling a php script with some paramaters to another server. So the ajax call is made by server1 and the php file called is on the server2. When I call the "success" method, the variable passed to the function is empty! the php script don't do nothing exept for echoing a string (i'm on testing:)). So the variable is still empty. I try to move the php file to the server1 where the ajax call was made and works perfect. So is a cross server problem. Can someone help me please? Thanks


After reading the tutorial posted below I find this plugin, http://github.com/jamespadolsey/jQuery-Plugins/blob/master/cross-domain-ajax/jquery.xdomainajax.js I'm rying it and seems to work. Thanks

+2  A: 

cross-server requests are a security issue (see Same Origin Policy). btw you can use JSON to workaround this, check this useful article to see how.

apeacox