I get values using yql and try to set the src in a auido tag and set the src for a img tag. this dose not work for me. The code executes the values are set but it is as if the browser dose not reload the page when the values are changed. I can set html, but not src that never changes. is thre some refresh or reload i am missing?
this is int the phoneui.documentReadyHandler function
var url = “http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20xml%20where%20url%3D%22http%3A%2F%2Fwww.equip.org%2Fbroadcasts%2Fdaily_show.xml%22&format=json&diagnostics=true&callback=?”;
$.getJSON(url, function (data) {
var txtItm = $(‘#m1-comp5’);
var imgObj = $(‘m1-mainPage-imgResource’);
var title = data.query.results.LiveShow.FeaturedResourceTitle;
var img = data.query.results.LiveShow.FeaturedResourceImage;
$(txtItm).html(title);
$(imgObj).attr(‘src’, img);
});
I have attached the page
Attachments:
You must be
logged in to view attached files.