function wipBasketHttpAjaxSuccess (t, statusDiv) { } function wipBasketHttpAjaxError (t) { //alert('Error ' + t.status + ' -- ' + t.statusText); //alert('you can\'t user this pseudo (ndr : test version).'); //$(imgPseudo).src = '/champNonValide.gif'; } function wipBasketHttpAjaxError404 (t) { //alert('Error ' + t.status + ' -- ' + t.statusText); //alert('you can\'t user this pseudo (ndr : test version).'); //$(imgPseudo).src = '/champNonValide.gif'; } function wipBasketShow (queryString, htmlDiv) { var status = document.getElementById(htmlDiv + 'status'); if (status) { status.style.display = 'inline'; } new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/basket/basket_show.epl?' + queryString, { onComplete:function(){ new Effect.Highlight(htmlDiv, { duration: 0.9 } ); }, asynchronous: true, evalScripts: true, method: 'get', on404: wipBasketHttpAjaxError404, onSuccess: wipBasketHttpAjaxSuccess, onFailure: wipBasketHttpAjaxError }); } function wipBasketShowMini (queryString, htmlDiv) { var status = document.getElementById(htmlDiv + 'status'); if (status) { status.style.display = 'inline'; } new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/basket/basket_show_mini.epl?' + queryString, { onComplete:function(){ new Effect.Highlight(htmlDiv, { duration: 0.9 } ); }, asynchronous: true, evalScripts: true, method: 'get', on404: wipBasketHttpAjaxError404, onSuccess: wipBasketHttpAjaxSuccess, onFailure: wipBasketHttpAjaxError }); } function wipBasketCheckout (queryString, htmlDiv, step) { var status = document.getElementById(htmlDiv + 'status'); if (status) { status.style.display = 'inline'; } new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/basket/basket_checkout_' + step + '.epl?' + queryString, { onComplete:function(){ new Effect.Highlight(htmlDiv, { duration: 0.9 } ); }, asynchronous: true, evalScripts: true, method: 'get', on404: wipBasketHttpAjaxError404, onSuccess: wipBasketHttpAjaxSuccess, onFailure: wipBasketHttpAjaxError }); } function wipBasketSendorder (queryString, htmlDiv) { var status = document.getElementById(htmlDiv + 'status'); if (status) { status.style.display = 'inline'; } new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/basket/basket_sendorder.epl?' + queryString, { onComplete:function(){ new Effect.Highlight(htmlDiv, { duration: 0.9 } ); }, asynchronous: true, evalScripts: true, method: 'get', on404: wipBasketHttpAjaxError404, onSuccess: wipBasketHttpAjaxSuccess, onFailure: wipBasketHttpAjaxError }); } function wipBasketAdd (queryString, htmlDiv) { var status = document.getElementById(htmlDiv + 'status'); if (status) { status.style.display = 'inline'; } new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/basket/basket_add.epl?' + queryString, { onComplete:function(){ new Effect.Highlight(htmlDiv, { duration: 0.9, startcolor: '#aaffaa' } ); }, asynchronous: true, evalScripts: true, method: 'post', encoding: 'iso-8859-1', contentType: 'application/x-www-form-urlencoded; charset=iso-8859-1', on404: wipBasketHttpAjaxError404, onSuccess: wipBasketHttpAjaxSuccess, onFailure: wipBasketHttpAjaxError }); } 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: wipBasketHttpAjaxError404, onSuccess: wipBasketHttpAjaxSuccess, onFailure: wipBasketHttpAjaxError }); } 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: wipBasketHttpAjaxError404, onSuccess: wipBasketHttpAjaxSuccess, onFailure: wipBasketHttpAjaxError }); } 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: wipBasketHttpAjaxError404, onSuccess: wipBasketHttpAjaxSuccess, onFailure: wipBasketHttpAjaxError }); }