Rufnex wrote:
is it possible to use the XMLHTTPRequest-Object with the Methods PUT
and DELETE in JavaScript? Maybe there is a tutorial or a short e.g.
It might depend on the implementation or version of that object you are
using but in theory more than the regularly used POST and GET requests
are possible, just use the HTTP method as the first argument to the open
method.
For MSXML (which you use with client-side script in IE for instance) it
is documented
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/52aaf5ff-e302-4490-821a-cb3a085fe5ee.asp>
that the method parameter of the open method allows
"The HTTP method used to open the connection, such as GET, POST, PUT,
or PROPFIND"
although I don't read that as a complete list, HEAD for instance is
certainly possible too in my experience.
Mozilla's XMLHttpRequest should also have a broad support for the
various HTTP request methods.
I think other browsers like Safari first focussed on implementing the
mainly used methods GET and POST but probably have improved by now but
of course on the web you might then be prepared to have visitors with
older versions.
--
Martin Honnen
http://JavaScript.FAQTs.com/