//////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function findObj(theObj, theDoc) { var p, i, foundObj; if(!theDoc) theDoc = document; if( (p = theObj.indexOf("?")) > 0 && parent.frames.length) { theDoc = parent.frames[theObj.substring(p+1)].document; theObj = theObj.substring(0,p); } if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj]; for (i=0; !foundObj && i < theDoc.forms.length; i++) foundObj = theDoc.forms[i][theObj]; for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) foundObj = findObj(theObj,theDoc.layers[i].document); if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj); return foundObj; } var xhr_object = null; var xhr_url_filInfo = '/shared/popUpBlockFilInfo.shtml'; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function changeFilInfo(id_collection) { findObj( 'FilInfosContent' ).innerHTML = "Chargement..."; if(document.pub468x60) document.pub468x60.location.reload(); if(document.pub_carre) document.pub_carre.location.reload(); if ( window.XMLHttpRequest ) { // Objet XmlHttpRequest pour les moteurs GECKO xhr_object = new XMLHttpRequest(); } else if ( window.ActiveXObject ) { // Objet XmlHttpRequest pour Internet Explorer xhr_object = new ActiveXObject( 'Microsoft.XMLHTTP' ); } else { // Navigateur non-compatible alert( 'Votre navigateur ne supporte pas les objets XMLHTTPRequest...' ); return; } // On ouvre la requete vers la page désirée xhr_object.open( 'GET', xhr_url_filInfo+"?collection="+id_collection, true ); // On lui donne le pointeur de fonction de retour xhr_object.onreadystatechange = changeFilInfosReturn; // On envoi la requete xhr_object.send( null ); } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function changeFilInfosReturn() { // Sur le retour de la requete, on teste son état if ( xhr_object.readyState == 4 ) { // On injecte notre retour dans la DIV prevue a cet effet findObj('FilInfosContent').innerHTML = xhr_object.responseText; } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// var xhr_url_article = '/shared/popUpContentFilInfo'; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function loadArticle(id_article) { // findObj( 'articleContent' ).innerHTML = "Chargement..."; if(document.pub468x60) document.pub468x60.location.reload(); if(document.pub_carre) document.pub_carre.location.reload(); if ( window.XMLHttpRequest ) { // Objet XmlHttpRequest pour les moteurs GECKO xhr_object = new XMLHttpRequest(); } else if ( window.ActiveXObject ) { // Objet XmlHttpRequest pour Internet Explorer xhr_object = new ActiveXObject( 'Microsoft.XMLHTTP' ); } else { // Navigateur non-compatible alert( 'Votre navigateur ne supporte pas les objets XMLHTTPRequest...' ); return; } // On ouvre la requete vers la page désirée xhr_object.open( 'GET', xhr_url_article+"_"+id_article+"_content.shtml", true ); // On lui donne le pointeur de fonction de retour xhr_object.onreadystatechange = loadArticleReturn; // On envoi la requete xhr_object.send( null ); } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function loadArticleReturn() { // Sur le retour de la requete, on teste son état if ( xhr_object.readyState == 4 ) { // On injecte notre retour dans la DIV prevue a cet effet findObj('articleContent').innerHTML = xhr_object.responseText; } } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////