Monday 15 July 2013

How to call yahoo weather api javascript function from within a html doc -


When a html doctor is placed in the head or body section, these scripts write the document immediately. How can I tell their functionality with a button in the document? I have tried all the usual methods of calling the JS function, but there is no work please help, many thanks.

  & lt; Script & gt; Var callback function = function (data1) {var windy = data1.query.results.channel.wind; //alert(windy.chill); Document.write ("wind chill factor:" + windy.chill); }; & Lt; / Script & gt; & Lt; Script src = "https://query.yahooapis.com/v1/public/yql?q=select * weather.forecast Where is bad (Choose from geographical location woid.places (1) where text = 'chicago, il' ) & Amp; Format = json & amp; Callback = callbackFunction "& gt; & Lt; / Script & gt;  

Look at this code I get the air cooled and store it in a variable again , I use the AuxView attribute of a button to insert that value into a single device. Does this help?


No comments:

Post a Comment