Page 2 of 3

Populating an image URL from a REST service

Posted: Tue Jul 01, 2014 11:13 am
by Evgene Karachevtsev

Hello Danny,

Sorry, I'm not sure I understand your question correctly. You get data from the database. You display data received from DB. So update data in the database and you will get a new picture


Populating an image URL from a REST service

Posted: Tue Jul 01, 2014 1:38 pm
by Danny Nguyen

Hi Evgene,

This app is a Internet Radio app. It streams music, we have an album image for every song and the song is rotated randomly. with the help of your team. I was able to obtain the Now-playing information with images via JSON. It only shows when I first open the app, but the data does not refresh after each song.

I have tried using the following code:

setTimeout(function() {

location.reload();

}, 20000);

but it would stop the music and you have to press "play" button to again.

Please help.

Thanks.

Regards,


Populating an image URL from a REST service

Posted: Tue Jul 01, 2014 3:00 pm
by Kateryna Grynko

Hi Danny,

Try invoking a service that accesses Database in setTimeout, and map only an image from response rather than calling codelocation.reload();/code


Populating an image URL from a REST service

Posted: Tue Jul 01, 2014 3:07 pm
by Danny Nguyen

Katya,
I'm newbie, so if you can be a little more specific for how to do that. I appreciate that.

Thanks


Populating an image URL from a REST service

Posted: Tue Jul 01, 2014 3:27 pm
by Danny Nguyen

Katya - Thanks again, I found a post from your team:

serviceIntanceName.execute({});

Thank you so much for your help.

Regards,


Populating an image URL from a REST service

Posted: Tue Jul 01, 2014 3:48 pm
by Kateryna Grynko

Hi Danny,

Glad you solved it! Let us know if you need any help.


Populating an image URL from a REST service

Posted: Wed Jul 02, 2014 6:41 pm
by Danny Nguyen

Hi Katya,

I thought it was working, but now it does not work anymore.

My app is an internet radio. It streaming the music when click on play button. But when I use the following

serviceIntanceName.execute({});

to update music information every 20 sec. When the script run, music stop playing and I had to click on play again.

I am using HTML5 Audio player function.

Please help.

Thanks.

Regards,


Populating an image URL from a REST service

Posted: Thu Jul 03, 2014 10:04 am
by Evgene Karachevtsev

Danny,

We'll post our reply here: https://getsatisfaction.com/apperyio/...


Populating an image URL from a REST service

Posted: Mon Nov 10, 2014 1:34 am
by Sunoj Vijayan

This is not working for me. Please advice


Populating an image URL from a REST service

Posted: Mon Nov 10, 2014 2:52 am
by Illya Stepanov

Hi -

Please clarify what exactly you're trying and what is not working?