jquery - How to refresh product page without reloading in Magento..? -


i want product page refresh not reload when customer click on filter button..

hope doing well.

as off issue quite simple required fire ajax call , must of native js of prototype easy you.

now when fire ajax call or call java script function when filter clicked.

example ajax call in prototype , can frame in code.

document.observe("dom:loaded", function() {      sdate=($$('[name="startdate"]')[0].value)      edate=($$('[name="enddate"]')[0].value)      pid=($$('[name="prodid"]')[0].value)      new periodicalexecuter(function(pe)                        {                          new ajax.request('/index.php/productcountdown/index/timerdisplay', {                         method: 'post',                         parameters:{startdate: sdate, enddate: edate, prodid:pid},                         onsuccess: successfunc,                         onfailure:  failurefunc   });   },3); }); function successfunc(response) {       if (200 == response.status)      {             if (response.responsetext=="true")             {                 $("timerblock").show();             }             else             {                 $("timerblock").hide();             }     } } function failurefunc(response){ } 

in above example have given on load event call on click of filter.

hope make day !!!

cheers !!!

waiting comments :) :) ;p


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -