Extending functionality with javascript,Extending Functionality exercise in Bootcamp

Not applicable

function extractTempSunriseSunset(rss){

var yweather = new Namespace('http://xml.weather.yahoo.com/ns/rss/1.0');

var temp =rss.channel.item.yweather::condition.@temp.toXMLString();

var sunrise = rss.channel.yweather::astronomy.@sunrise.toXMLString();

var sunset = rss.channel.yweather::astronomy.@sunset.toXMLString();

var j = { "temp" : temp , "sunrise": sunrise , "sunset" : sunset};

return j;

}

i stuck on the bind('::') with javascript which i have been trying for 3 days.

Solved Solved
0 2 206
1 ACCEPTED SOLUTION

HI @Nkcubeko Jamela

Though I see that in the UI, I am able to save and deploy the proxy. On calling the API, I am able to get the correct response.

The error you are seeing the lint error which you can ignore if the proxy saves successfully.

View solution in original post

2 REPLIES 2

Not applicable

ss.png here what am doing based on the vidoes on yahoo weather api and if someone understands context.session generated by this exercise plz help.

HI @Nkcubeko Jamela

Though I see that in the UI, I am able to save and deploy the proxy. On calling the API, I am able to get the correct response.

The error you are seeing the lint error which you can ignore if the proxy saves successfully.