Connaissez-vous un bon tutoriel sur l'objet XML HTTP Request ? en fr ou en en.
Merci.
BMR
Celui-ci est un des meilleurs que je connaisse pour une première approche : http://jibbering.com/2002/4/httprequest.html
-- Cordialement, Thierry ;-)
BMR
Bonjour,
Connaissez-vous un bon tutoriel sur l'objet XML HTTP Request ? en fr ou en en.
Merci.
BMR
Celui-ci est un des meilleurs que je connaisse pour une première approche : http://jibbering.com/2002/4/httprequest.html
Merci, je la connais. Ce qui m'intéresse c'est la 2e approche :-). Mais j'ai vu la doc Microsoft qui paraît relativement exhaustive (pour une fois!). Avec la doc Mozilla plus succincte, mais qui indique les différences avec $MSoft.
BMR
Bonjour,
Connaissez-vous un bon tutoriel sur l'objet XML HTTP Request ? en fr
ou en en.
Merci.
BMR
Celui-ci est un des meilleurs que je connaisse pour une première approche :
http://jibbering.com/2002/4/httprequest.html
Merci, je la connais. Ce qui m'intéresse c'est la 2e approche :-). Mais
j'ai vu la doc Microsoft qui paraît relativement exhaustive (pour une
fois!). Avec la doc Mozilla plus succincte, mais qui indique les
différences avec $MSoft.
Connaissez-vous un bon tutoriel sur l'objet XML HTTP Request ? en fr ou en en.
Merci.
BMR
Celui-ci est un des meilleurs que je connaisse pour une première approche : http://jibbering.com/2002/4/httprequest.html
Merci, je la connais. Ce qui m'intéresse c'est la 2e approche :-). Mais j'ai vu la doc Microsoft qui paraît relativement exhaustive (pour une fois!). Avec la doc Mozilla plus succincte, mais qui indique les différences avec $MSoft.
BMR
Saad Saad
Bonjour,
Connaissez-vous un bon tutoriel sur l'objet XML HTTP Request ? en fr ou en en.
Merci.
BMR
Celui-ci est un des meilleurs que je connaisse pour une première approche : http://jibbering.com/2002/4/httprequest.html
Auriez-vous le même en français ?
Bonjour,
Connaissez-vous un bon tutoriel sur l'objet XML HTTP Request ? en fr
ou en en.
Merci.
BMR
Celui-ci est un des meilleurs que je connaisse pour une première approche :
http://jibbering.com/2002/4/httprequest.html
this module forms part of IE7 IE7 version 0.8 (alpha) 2004/11/09 by Dean Edwards, 2004 */
/* modelled after: http://www.mozilla.org/xmlextras/ */ function XMLHttpRequest() {
/* this is a simple wrapper for microsoft's activex object */
// IE6 has a better version var LIB = /MSIE 5/i.test(navigator.userAgent) ? "Microsoft" : "Msxml2";
// because it's a wrapper, we'll make a clear distinction in code // between the wrapper (public) and the object being wrapped (private) var _private = new ActiveXObject(LIB + ".XMLHTTP"); var _public = this;
// update property values function update() { for (var i in _defaults) { _public[i] = (typeof _private[i] == "unknown") ? _defaults[i] : _private[i]; } };
// handle a change in state function onreadystatechange() { // refresh properties update(); // call the public event handler (if it's set) if (typeof _public.onreadystatechange == "function") { _public.onreadystatechange(); } };
// public interface _public.abort = function() { _private.abort(); }; _public.getAllResponseHeaders = function() { return _private.getAllResponseHeaders(); }; _public.getResponseHeader = function(header) { return _private.getResponseHeader(header); }; _public.openRequest = function(method, url, async, user, password) { _private.open(method, url, async, user, password); // need to update this here for some reason _private.onreadystatechange = onreadystatechange; }; _public.open = _public.openRequest; _public.send = function(body) { _private.send(body); }; _public.setRequestHeader = function(header, value) { _private.setRequestHeader(header, value); };
this module forms part of IE7
IE7 version 0.8 (alpha) 2004/11/09
by Dean Edwards, 2004
*/
/*
modelled after: http://www.mozilla.org/xmlextras/
*/
function XMLHttpRequest() {
/* this is a simple wrapper for microsoft's activex object */
// IE6 has a better version
var LIB = /MSIE 5/i.test(navigator.userAgent) ? "Microsoft" : "Msxml2";
// because it's a wrapper, we'll make a clear distinction in code
// between the wrapper (public) and the object being wrapped (private)
var _private = new ActiveXObject(LIB + ".XMLHTTP");
var _public = this;
// update property values
function update() {
for (var i in _defaults) {
_public[i] = (typeof _private[i] == "unknown") ? _defaults[i] : _private[i];
}
};
// handle a change in state
function onreadystatechange() {
// refresh properties
update();
// call the public event handler (if it's set)
if (typeof _public.onreadystatechange == "function") {
_public.onreadystatechange();
}
};
// public interface
_public.abort = function() {
_private.abort();
};
_public.getAllResponseHeaders = function() {
return _private.getAllResponseHeaders();
};
_public.getResponseHeader = function(header) {
return _private.getResponseHeader(header);
};
_public.openRequest = function(method, url, async, user, password) {
_private.open(method, url, async, user, password);
// need to update this here for some reason
_private.onreadystatechange = onreadystatechange;
};
_public.open = _public.openRequest;
_public.send = function(body) {
_private.send(body);
};
_public.setRequestHeader = function(header, value) {
_private.setRequestHeader(header, value);
};
this module forms part of IE7 IE7 version 0.8 (alpha) 2004/11/09 by Dean Edwards, 2004 */
/* modelled after: http://www.mozilla.org/xmlextras/ */ function XMLHttpRequest() {
/* this is a simple wrapper for microsoft's activex object */
// IE6 has a better version var LIB = /MSIE 5/i.test(navigator.userAgent) ? "Microsoft" : "Msxml2";
// because it's a wrapper, we'll make a clear distinction in code // between the wrapper (public) and the object being wrapped (private) var _private = new ActiveXObject(LIB + ".XMLHTTP"); var _public = this;
// update property values function update() { for (var i in _defaults) { _public[i] = (typeof _private[i] == "unknown") ? _defaults[i] : _private[i]; } };
// handle a change in state function onreadystatechange() { // refresh properties update(); // call the public event handler (if it's set) if (typeof _public.onreadystatechange == "function") { _public.onreadystatechange(); } };
// public interface _public.abort = function() { _private.abort(); }; _public.getAllResponseHeaders = function() { return _private.getAllResponseHeaders(); }; _public.getResponseHeader = function(header) { return _private.getResponseHeader(header); }; _public.openRequest = function(method, url, async, user, password) { _private.open(method, url, async, user, password); // need to update this here for some reason _private.onreadystatechange = onreadystatechange; }; _public.open = _public.openRequest; _public.send = function(body) { _private.send(body); }; _public.setRequestHeader = function(header, value) { _private.setRequestHeader(header, value); };