you may have issue with url, make it accessible on internet and use that 
address

On Monday, November 26, 2012 9:52:12 AM UTC-6, Michael Ofori-Appiah wrote:
>
> I ma trying to get data using jqery.ajax from a servlet but it is not 
> returning data.  However, when I run the servlet url in the browser, it 
> displays the data.
> The code is as shown below:  Both the success and error does not return 
> anything.  Can anybody please assist.
>
> function drawChart() {
>        var result=null;
>        $.ajax({
>    url:"http://localhost:8081/mHealth/MapData";,
>    type:"get",
>    dataType:"text",
>    async:false,
>    success:function(data){
>    result= data; 
>    },
>    error: function(result){
>    alert("There is no data to populate the map.");
>    }
>    });
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/iv5FlzRVYeUJ.
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-visualization-api?hl=en.

Reply via email to