Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery post with json response

$.post(
    "test.php",
    { id: product_id, "images[]": jQuery.makeArray(image_links) },
    function(data) {
        var response = jQuery.parseJSON(data);

        var images = response.images[0];
        for (var i in images){
            alert(images[i]);
        }
    }
);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #post #json #response
ADD COMMENT
Topic
Name
5+8 =