Page 1 of 1

loading url from database

Posted: Sun Apr 24, 2016 11:31 pm
by Gosse Westra

Hello again.

I have created a database collection where i store urls of pictures. How do i load a random url in an image component?


loading url from database

Posted: Mon Apr 25, 2016 8:16 am
by Serhii Kulibaba

Hello,

You can use parameter "skip" for that: https://devcenter.appery.io/documenta...
Just set there a random number, which you are able to get with Math.random() function: https://developer.mozilla.org/en/docs...

set min value=0, max=amount of items in you DB