facebook

setting values from jquery: CLOSED

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #324300 Reply

    johnbail
    Member

    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.
    #324316

    johnbail
    Member

    well I feel stupid and spoiled by intilsence thank you tha was the issue.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: setting values from jquery: CLOSED

You must be logged in to post in the forum log in