function wipRatingHttpAjaxSuccess (t, statusDiv) { } function wipRatingHttpAjaxError (t) { //alert('Error ' + t.status + ' -- ' + t.statusText); //alert('you can\'t user this pseudo (ndr : test version).'); //$(imgPseudo).src = '/champNonValide.gif'; } function wipRatingHttpAjaxError404 (t) { //alert('Error ' + t.status + ' -- ' + t.statusText); //alert('you can\'t user this pseudo (ndr : test version).'); //$(imgPseudo).src = '/champNonValide.gif'; } function wipRatingShow (queryString, htmlDiv) { var status = document.getElementById(htmlDiv + 'status'); if (status) { status.style.display = 'inline'; } new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/rating/rating_show.epl?' + queryString, { onComplete:function(){ new Effect.Highlight(htmlDiv, { duration: 0.5 } ); }, asynchronous: true, evalScripts: true, method: 'get', on404: wipRatingHttpAjaxError404, onSuccess: wipRatingHttpAjaxSuccess, onFailure: wipRatingHttpAjaxError }); } function wipRatingAdd (queryString, htmlDiv) { var status = document.getElementById(htmlDiv + 'status'); if (status) { status.style.display = 'inline'; } new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/rating/rating_add.epl?' + queryString, { onComplete:function(){ new Effect.Highlight(htmlDiv, { duration: 0.5 } ); }, asynchronous: true, evalScripts: true, method: 'post', encoding: 'iso-8859-1', contentType: 'application/x-www-form-urlencoded; charset=iso-8859-1', on404: wipRatingHttpAjaxError404, onSuccess: wipRatingHttpAjaxSuccess, onFailure: wipRatingHttpAjaxError }); } function wipLoginLogin (queryString, htmlDiv) { var status = document.getElementById(htmlDiv + 'status'); if (status) { status.style.display = 'inline'; } new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/login/login.epl?' + queryString, { onComplete:function(){ new Effect.Highlight(htmlDiv, { duration: 0.5 } ); }, asynchronous: true, evalScripts: true, method: 'get', on404: wipRatingHttpAjaxError404, onSuccess: wipRatingHttpAjaxSuccess, onFailure: wipRatingHttpAjaxError }); } function wipLoginRegister (queryString, htmlDiv) { var status = document.getElementById(htmlDiv + 'status'); if (status) { status.style.display = 'inline'; } new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/login/register.epl?' + queryString, { onComplete:function(){ new Effect.Highlight(htmlDiv, { duration: 0.5 } ); }, asynchronous: true, evalScripts: true, method: 'get', on404: wipRatingHttpAjaxError404, onSuccess: wipRatingHttpAjaxSuccess, onFailure: wipRatingHttpAjaxError }); } function wipLoginActivate (queryString, htmlDiv) { var status = document.getElementById(htmlDiv + 'status'); if (status) { status.style.display = 'inline'; } new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/login/activate.epl?' + queryString, { onComplete:function(){ new Effect.Highlight(htmlDiv, { duration: 0.5 } ); }, asynchronous: true, evalScripts: true, method: 'get', on404: wipRatingHttpAjaxError404, onSuccess: wipRatingHttpAjaxSuccess, onFailure: wipRatingHttpAjaxError }); }