javascript - setinterval on load json object one by one -


i have array objects , have display 1 one equal interval of time, code displays json need each comment added 1 one.

<script>         $(document).ready(function() {              $('div.comment-container').comment({                 title: 'comments',                 url_get: 'articles/id/1/comments/list',                 limit: 10,                 auto_refresh: false,                 refresh: 10000,                 transition: 'slidetoggle',             });           });  </script> 

my array has

{     "results": {         "comments": [             {                 "comment_id": "1",                 "parent_id": "0",                 "in_reply_to": null,                 "element_id": "134",                 "created_by": "1",                 "fullname": "administrator admin",                 "picture": "../css/images/user_blank_picture.png",                 "posted_date": "2013-02-27 09:03:25",                 "text": "test message one",                 "attachments": [],                 "childrens": [                     {                         "comment_id": "3",                         "parent_id": "1",                         "in_reply_to": "administrator admin",                         "element_id": "134",                         "created_by": "2",                         "fullname": "manager manager",                         "picture": "../css/images/user_blank_picture.png",                         "posted_date": "2013-02-27 08:48:50",                         "text": "hi, reply you",                         "attachments": [],                         "childrens": []                     },                     {                         "comment_id": "2",                         "parent_id": "1",                         "in_reply_to": "administrator admin",                         "element_id": "134",                         "created_by": "1",                         "fullname": "administrator admin",                         "picture": "../css/images/user_blank_picture.png",                         "posted_date": "2013-02-26 11:30:44",                         "text": "test message level 2",                         "attachments": [],                         "childrens": [                             {                                 "comment_id": "4",                                 "parent_id": "2",                                 "in_reply_to": "administrator admin",                                 "element_id": "134",                                 "created_by": "2",                                 "fullname": "manager manager",                                 "picture": "../css/images/user_blank_picture.png",                                 "posted_date": "2013-02-27 08:50:05",                                 "text": "replied level 3",                                 "attachments": [],                                 "childrens": []                             }                         ]                     }                 ]             }         ],         "total_comment": 4,         "user": {             "user_id": 1,             "fullname": "administrator admin",             "picture": "../css/images/user_blank_picture.png",             "is_logged_in": true,             "is_add_allowed": true,             "is_edit_allowed": true         }     } } 

what need every single comment should added browser 1 one equal interval


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo