I can't get this alert() to happen. It doesn't pop-up at all.
- $(document).ready(function(){
- $("#compose-form").submit(function(){
- $.post(
- "handle_actions.php",
- $("#compose-form").serialize(),
- function(data){
- alert(""+data.message);
- },
- "json"
- );
- return false;
- });
});
Pertinent code in handle_actions.php:
- $json = array(
- 'success' => $success,
- 'message' => $message
- );
-
- echo json_encode($json);
Note that all the code in handle_actions.php executes fine. The problem seems to be in the first code snippet.
Let me know if you need more information. Thanks.