php - Why my laravel website reloading after completion of timeout time of loader -
i working on laravel project along jquery reference can visit on "http://etailor.fudugosolutions.in/designshirts" site. while click on options of fabric tab, happening after completion of time of loader 3000ms web page refreshing although haven't use location.reload function in js. tell instead of refreshing page, replacing complete html elements of page. kindly please me solving issue.
this js code receiving data controller.
function getfab(id,jarray,otab){ var arr=jarray; $.ajax({ type:'post', url:'/designshirts', data:{fabid : id, carr : arr, typ : 'fabric', t : otab}, beforesend: function() { $(".et-small-loader").show(); }, headers: { 'x-csrf-token': $('meta[name="csrf-token"]').attr('content') }, success:function(data){ $('body').html(data); settimeout($(".et-small-loader").fadeout(),1000); } }); }
here .html(data) replacing html in blade.
Comments
Post a Comment