All AJAX is Returning False

All AJAX is Returning False

All my AJAX is returning false, I think it could be something about serializing my data  but I'm not exactly sure what that means. However this is my jQuery AJAX Post


  1. $.post(
  2.  "post_updateImages.php",
  3.   function(data){
  4.     if (data.success)
  5.      $("#fileView").css({'color':'green'}),
  6.      $("#fileView").html(data.message);
  7.     else
  8.      $("#fileView").css({'color':'red'}),
  9.      $("#fileView").append("failure");                   
  10.     },
  11.   "json"
  12. );

in FireBug my response comes back like this:

  1. {"success":true,"message":"<img src='uploaded\/07312010075.jpg'\/> <br><img src='uploaded\/07312010074.jpg'\/> <br><img src='uploaded\/07312010073.jpg'\/> <br><img src='uploaded\/07312010072.jpg'\/> <br>"}

  • but even though my success returns true, JSON automatically finds it false... and it never appends any of my message variable either. could this have something to do with serialize (not sure what that is though)?