var appreciationid; function SaveAppreciation(objectid,objectvalue,useraffected,label,divid){ thedata ="objectid="+ objectid +"&objectvalue="+ objectvalue + "&useraffected=" + useraffected; appreciationid=objectvalue; //alert(appreciationid) $.ajax({ url: "Http://www.communi-trip.com/ajax/ajax_save_appreciation.php", global: false, type: "POST", data: thedata, dataType: "html", success: function(msg){ if(msg!=''){ //alert(msg); jQuery.facebox('
Error
You must login inorder to appreciate this item
'); } //$ ( "#appreciation"). html (''); //$ ( "#appreciation").load('../modules/mod_appreciation.php?objectid='+objectid + '&objectvalue' +objectvalue); $ ( "#"+divid).load('Http://www.communi-trip.com/modules/mod_appreciation.php', {'objectid':objectid, 'objectvalue': objectvalue, 'label':label,'divid':divid,'useraffected':useraffected }, function (responseText, textStatus, XMLHttpRequest){}); }, failure: function() { alert("Sorry, a problem occured. Please try again later"); } } ).responseText; }