Horje
how to show latest stock news in my webpage js quote? Code Example
how to show latest stock news in my webpage js quote?
function getData() {
    var url = 'http://query.yahooapis.com/v1/public/yql';
    var symbol = $("#symbol").val();
    var data = encodeURIComponent("select * from yahoo.finance.quotes where symbol in ('" + symbol + "')");

    $.getJSON(url, 'q=' + data + "&format=json&diagnostics=true&env=http://datatables.org/alltables.env")
        .done(function (data) {
            $('#result').text("Price: " + data.query.results.quote.LastTradePriceOnly);
        })
        .fail(function (jqxhr, textStatus, error) {
            var err = textStatus + ", " + error;
            console.log('Request failed: ' + err);
        });
}




Javascript

Related
data toggle modal and tooltip Code Example data toggle modal and tooltip Code Example
node close rabbitmq connection Code Example node close rabbitmq connection Code Example
salman javascript id Code Example salman javascript id Code Example
fabic js save and render Code Example fabic js save and render Code Example
jquery download Code Example jquery download Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7