/***************************************************************************
- * Copyright (C) 2003-2006 Polytechnique.org *
+ * Copyright (C) 2003-2007 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
}
}
if (Ajax.xml_client == null) {
- alert("Ton client ne supporte pas Ajax, nécessaire pour certaines fonctionalités de cette page");
+ alert("Ton client ne supporte pas Ajax, nécessaire pour certaines fonctionalités de cette page");
}
}
Ajax.init = true;
if (Ajax.xml_client == null) {
return true;
}
- Ajax.xml_client.onreadystatechange =
- function()
+ Ajax.xml_client.abort();
+ Ajax.xml_client.onreadystatechange = function()
{
if(Ajax.xml_client.readyState == 4) {
if (Ajax.xml_client.status == 200) {
- document.getElementById(obj).innerHTML = Ajax.xml_client.responseText;
+ if (obj != null) {
+ document.getElementById(obj).innerHTML = Ajax.xml_client.responseText;
+ }
+ } else if (Ajax.xml_client.status == 403) {
+ window.location.reload();
}
}
};
}
}
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: