Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Populating an image URL from a REST service

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

Danny Nguyen
Posts: 0
Joined: Tue Apr 22, 2014 3:24 pm

Populating an image URL from a REST service

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,

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Populating an image URL from a REST service

Hi Danny,

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

Danny Nguyen
Posts: 0
Joined: Tue Apr 22, 2014 3:24 pm

Populating an image URL from a REST service

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

Thanks

Danny Nguyen
Posts: 0
Joined: Tue Apr 22, 2014 3:24 pm

Populating an image URL from a REST service

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

serviceIntanceName.execute({});

Thank you so much for your help.

Regards,

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Populating an image URL from a REST service

Hi Danny,

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

Danny Nguyen
Posts: 0
Joined: Tue Apr 22, 2014 3:24 pm

Populating an image URL from a REST service

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,

Sunoj Vijayan
Posts: 0
Joined: Thu Sep 25, 2014 5:53 am

Populating an image URL from a REST service

This is not working for me. Please advice

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Populating an image URL from a REST service

Hi -

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

Return to “Issues”