Regards,
Gavin
On Mon, Nov 29, 2010 at 7:31 AM, abdullah mohamed mohamed abdelrhim
function getCookie(name) {var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");return r ? r[1] : undefined;}jQuery.postJSON = function(url, args, callback) {args._xsrf = getCookie("_xsrf");$.ajax({url: url, data: $.param(args), dataType: "text", type: "POST",success: function(response) {if (callback) callback(eval("(" + response + ")"));}, error: function(response) {console.log("ERROR:", response)}});};