Ajax Demos
Ajax demos using the Anaa framework.
Text demos
XML demos
Ajax and PHP demos
- Run a PHP Script. Use GET to exec a PHP file. Its display is returned into responseText.
- Ping URL. Check if a webpage exists with a PHP script.
- Chaining several requests. A POST request followed by a GET request to retrieve the results.
HTML demos
- Load the content of another HTML page.
- Get a specific element from another HTML page.
Headers
Cross-site Ajax, exchanging data between websites with Anaa
The XMLHttpRequest object allows modern browsers including Internet Explorer 10, to exchange data between different areas. For other browsers, you can use an alternative ...
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.
Download the extension: anaa-cross-site.zip
