Several demos of Ajax and the XMLHttpRequest object. Each demo is a HTML
an instance of the object, and assigns it to the xhr variable.
You are free to use the code of these demos as template for pages of your
own website (see licence at bottom).
Script to show how to manage a gallery of thumbnails with a function to
display image in full size, when the mouse is moved over a thumbnail.
Ajax is used for loading the full size images asynchronously after the loading
of the page.
Vous can have a dialogue with a program on the server, by chaining Ajax
requests, with the POST method to send data to the server and GET to retrieve
the results found by the remote program. The demo shows how to overcome
the traps of the asynchronous mode.
Check If file Exist with Ajax always returns true.
Wed, 18 Mar 2009 08:39:46
In the demo file exists, everything seems to work accept for no matter what I type in the box to check for it always says that the file exist when in fact it does not. My code is exactly the same as the one on the demo page. What would cause this to always return that the file exist when in fact it doesn't. The demo appears to function correctly unlike my own. I have not changed anything. I am on a Linux Server. Any info would be helpful. Also please let me know if you need any additional information from me.
Wed, 18 Mar 2009 20:43:40
If it is exactly the same code, sure, this is the configuration of the server that differs. Not all servers support the same functionnalities, and return the same infos.
But in any if a mean should be available to know if a file exists with HTTP codes.