Tuesday, March 26, 2013

javascript - Calling finance.yahoo api using jquery - Stack Overflow

I want to send http request for fetching finance.yahoo stock data with url like : http://finance.yahoo.com/d/quotes.csv?s=GAIL.NS+BPCL.NS+%5ENSEI&f=snl1hgp which returns a csv file. I want to read the response data and fill it in a listview using Javascript or JQuery mobile. None of the links I referred helped me.

I tried using the following code:

$.ajax({     type: "GET",     url: "http://finance.yahoo.com/d/quotes.csv",     data: "s=GAIL.NS+BPCL.NS+%5ENSEI&f=snl1hgp",     dataType: "text/csv",     success: function(data) {         alert(JSON.stringify('data is :' + data));     } }); 

I get blank data as alert. Any sample code or useful link would be appreciated.

Source: http://stackoverflow.com/questions/15637057/calling-finance-yahoo-api-using-jquery

george h w bush Belk Led Zeppelin Ned Rocknroll Norman Schwarzkopf Avery Johnson netflix

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.