Page 1 of 1

Changing the image source so that new image icons appear

Posted: Fri Aug 02, 2013 5:12 am
by JACKSON LIANG

Hi, i have been working on these tutorials for the past weeks:

http://docs.appery.io/tutorials/uploa...

http://docs.appery.io/tutorials/addin...

I want to upload an image onto the database and then view that image using photoswipe. However when i upload a new image the source link:

ul class="gallery"
li

Image

/li

Needs to be replaced everytime when viewing the gallery on the photoswipe to capture the new image uploaded in the database. Is there alternatives or solutions that you can help me so that when i upload a new image, a new icon is created with the source link for the new image??

I am fairly new at this so if there is a solution i would need step by step instructions to solve the problem.
/ul


Changing the image source so that new image icons appear

Posted: Fri Aug 02, 2013 5:14 am
by JACKSON LIANG

Changing the image source so that new image icons appear

Posted: Fri Aug 02, 2013 5:14 am
by JACKSON LIANG

//
Image


Changing the image source so that new image icons appear

Posted: Fri Aug 02, 2013 9:48 am
by Maryna Brodina

Hello!
After uploading to the Success function will be passes "data" object with fileurl property. See tutorial http://docs.appery.io/tutorials/uploa.... Line codeconsole.log("Successfully loaded");/code
using JS in this function you can add new list element to the images list http://api.jquery.com/category/manipu...