jQuery AJAX Array Response

Discussion in 'jQuery' started by questionalDotCom, Jun 5, 2009.

  1. #1
    Hey all. I have been able to do fun jquery stuff with the return response, but now on an ajax query I need to get multiple things out of the return.

    For instance, if my return is:

    
    Array
    (
     [body] => Your not really funny.
     [guestName] => bobbonew
    )
    
    Code (markup):
    How do I get the information out of there with jquery?

    All I can figure out is:

    
    /* .... */
    
    success: function(data){
    /*manipulate the return*/
    }
    
    Code (markup):
    And can pretty much do anything with just the return except for putting body and guestName into variables for further manipulation. Any advice?
     
    questionalDotCom, Jun 5, 2009 IP
  2. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    use json or jsonp
     
    MMJ, Jun 5, 2009 IP