It should be json[i].title as per your json.

________________________________________________________________________
Thanks & Regards,
Dhruva Sagar.


On Fri, 2009-08-07 at 09:38 -0700, efet wrote:

> There is not a single clear example that explains how to pull json
> data as simple as possible. I have a valid json and I need to retrieve
> it with jquery
> 
> my json output is as:
> 
> {
>     "title": "blog entries",
>     "items" : [
>         {
>             "title": "Can Members of the Diaspora Work Effectively at
> th",
>             "date": "8/4/2009 9:42:38 AM"
>         },
>         {
>             "title": "Ashoka Brazil",
>             "date": "7/15/2009 8:56:12 AM"
>         },
>         {
>             "title": "Pozitron/Endeavor",
>             "date": "5/26/2009 8:58:39 PM"
>         }
>     ]
> }
> 
> my codes.
> 
> $.getJSON("http://www.pangeaadvisors.org/sep123/blog.cs.asp";,
> { PROCESS: "ViewBlog" }, function(json) {
>                     for (var i = 0; i < json.length; i++) {
>                         var title = json[i].Title;
>                         $('<div class="news_title"></div>').html
> (title).appendTo('#news_wrap');
>                     }
>             });
> 

<<attachment: draft-paper.png>>

Reply via email to