Hi Ashwani,

I think that what you are seeing is expected behavior. For some
stories we do not have location information, so it is left blank in
the JSON result data.

Happy coding,

Jeff

On Nov 9, 9:24 pm, Ashwani <[email protected]> wrote:
> Hi All,
>
> The API doc says that .location property of the NewsSearch result
> contains the location of the news story. But I'm not getting any value
> in it. I'm doing like this:
>
>       var results = newsSearch.results;
>         for (var i = 0; i < results.length; i++) {
>           var result = results[i];
>
>           alert("loc " + result.location);
>           var loc = document.createElement('td');
>           loc.appendChild(document.createTextNode(result.location));
>           container.appendChild(loc);
>
> }
>
> Is it a bug or I'm doing something wrong? Please can someone help.
>
> thanks & Regards,
> Ashwani
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to