I built a message inbox, when you click on the message title an AJAX call is being made. I want to know how can i reply to the call using JSON (server-side).
Also how can i use the JSON returned to me to extract the data.
$.ajax({
type: 'POST',
url: 'ajax_handler.php',
data: ({
ajaxHook: 'getMessageReplies',
messageID: $(this).attr('class')
}),
success: function ( messageLayout ){
}
});
thanks in advance! :)