function addtocart(parameter,targeturl) { jQuery("#loadarea").css({display:"block"}); jQuery.ajax({ type: 'POST', url: targeturl, cache: false, data: 'bookid='+parameter, success: function(returndata) { try{ jQuery('#cartcontents').html(returndata); } catch(err) { alert(err); } // jQuery('#guncelle').load('list.phtml #sepetim'); jQuery("#loadarea").hide("slow").delay(5000); }, error:function(returndata){ jQuery("#loadarea").hide("slow").delay(5000); alert(returndata); } }); } function Removefromcart(parameter,targeturl,refreshurl) { jQuery("#loadarea").css({display:"block"}); jQuery.ajax({ type: 'POST', url: targeturl, cache: false, data: 'bookid='+parameter, success: function(returndata) { try{ jQuery('#cartcontents').html(returndata); } catch(err) { alert(err); } jQuery("#loadarea").hide("slow").delay(5000); //reloadPage(); RefershCartItems(refreshurl,'','cart_items'); }, error:function(returndata){ jQuery("#loadarea").hide("slow").delay(5000); alert(returndata); } }); } function RefershCartItems(targeturl,SendedData,TargetResultContainerId) { try{ if(TargetResultContainerId) { // alert(HiddenList.lenght); // for(var i=0;i