Cross-site Ajax, Exchanging Data Between Websites With Anaa
The Cross-site extension to the Anaa framework allows to exchange data between two websites in a secure way.
The extension is made of these files:
On the first site:
- anaa.js
- anaa-cross-site.js
- anaa-cross-site-get.php
- anaa-cross-site-call.php
On the second site:
- anaa-cross-site-reply.php
- anaa-remote.txt
When you want only to get data from the second site, you need only for anaa-cross-get.php and the JavaScript files.
The script anaa-cross-site-call.php sends data to the second site, where the script anaa-cross-site-reply.php processes them and returns a result that is retrieved by the calling script.
Anaa-remote.txt is a text file used by the demo.
For more details about how cross-site ajax works with PHP scripts, read the Cross-site Ajax tutorial on xul.fr.
Download the extension
(c) 2007-2010 Scriptol.com
