Page 1 of 2

Rss description in popup

Posted: Fri Aug 23, 2013 10:46 am
by Johnny

Hi

I am show a image and a title from my rss feed. What I want to do is when I click on the image the rss description must show in a popup.

Can you help or direct me in a direction.

Thank you


Rss description in popup

Posted: Fri Aug 23, 2013 11:03 am
by Kateryna Grynko

Hi Johnny,

You would need to use Image component On Click action.
You can use localStorage to pass data.
These references should be helpful:
http://docs.appery.io/tutorials/build... - building RSS app
http://docs.appery.io/documentation/w... - here you can find how to work with pop-ups and events


Rss description in popup

Posted: Fri Aug 23, 2013 11:23 am
by Johnny

Cool I stored in local storage and is working 100%. But when I go and click on the next image the old description is still showing.

Must I do a refresh?


Rss description in popup

Posted: Fri Aug 23, 2013 12:20 pm
by Johnny

Ok I tried full page refresh but still same description. Must I clear the local storage var?


Rss description in popup

Posted: Fri Aug 23, 2013 2:12 pm
by Kateryna Grynko

On Image click you would need to take text and show it in pop-up. Saving text to localStorage from mapping won't help.

Map your text to a hidden Label.
On Image click save Label text to a localStorage variable.
Then open pop-up that reads a localStorage variable value.


Rss description in popup

Posted: Fri Aug 23, 2013 2:42 pm
by Johnny

I did that like you explained. But same problem. Can you maybe check for me please? it is shared with support


Rss description in popup

Posted: Fri Aug 23, 2013 2:52 pm
by Johnny

If I can explain more, i can see that it sets the local storage correctly. So when I click on other image my description change in the local storage. But they don't change on the page...


Rss description in popup

Posted: Fri Aug 23, 2013 3:19 pm
by Maryna Brodina

Can you tell us your app name?


Rss description in popup

Posted: Fri Aug 23, 2013 3:29 pm
by Johnny

Thank you, it is Trou Idees


Rss description in popup

Posted: Fri Aug 23, 2013 5:14 pm
by Maryna Brodina

So you added action on Click event on image in Carousel, but it doesn't work? Please try to add action on Click on Carousel, not on image.