0

I am testing a AJAX response for a domain in which I will update the news in the admin panel . For testing , I have uploaded a testing HTML page in

http://7sisters.in/bus_response.html

And I have the PHP code in

http://www.bookings.7sisters.in/response/response.php

response.php code is:

<?php

    echo 'JSON RESPONSE';
?>

But the AJAX response ajaxRequest.responseText alerts empty. Is this due to the difference in domain ?

AssamGuy
  • 1,571
  • 10
  • 30
  • 43

1 Answers1

1

Yes, you can not do cross domain ajax call for security reasons however there are libraries (jQuery, mootools) which can do it in little different way

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Kragh
  • 403
  • 4
  • 11