function setMemberLog(szView, szActCode, szDataType, szResult) { $.ajaxSettings.traditional = true; $.ajax({ type : "POST" , url : MEMBER_NONE_SCHEME + "/app/api/set_member_log.php" , data : { szView : szView , szActCode : szActCode , szDataType : szDataType , szResult : szResult } , dataType : 'json' , xhrFields: { withCredentials: true } , beforeSend : function(request) { request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;charset=utf-8'); } , success : function(response) { } , error : function(xhr, ajaxOptions, thrownError) { } }); }