Page 1 of 1

Is there a way to make an image clickable?

Posted: Mon Sep 30, 2013 8:15 am
by greg keys

I have an activity feed which has user images in the feed, I would like to make those images clickable and lead to their respective profiles but I can't seem to figure out how to make a simple image clickable or how to store some information on the image element so that a click event knows what to do.

I would have thought we could simply drag an image element onto a link element and associate the proper data in the REST service response to the image asset as well as the link asset but that doesn't seem to work.

Next I thought perhaps I can make a grid cell clickable, which it seems I can however the cells do not show up in the REST respond area for association so that wont work

Is there a recomended way of making images clickable based on a dynamic REST association?

One feature I could see helping would be if we could add meta data to elements and use that meta data to associate information from the REST response to use in conjunction with Javascript.

Unless of course there is a proper way of doing this.


Is there a way to make an image clickable?

Posted: Mon Sep 30, 2013 9:01 am
by Kateryna Grynko

Hi Greg,

Do you need to get images from the database, and run a particular event handler depending on what image it is?


Is there a way to make an image clickable?

Posted: Mon Sep 30, 2013 9:34 pm
by greg keys

No all the information is coming from a website REST api.


Is there a way to make an image clickable?

Posted: Mon Sep 30, 2013 10:40 pm
by greg keys

I think i found what i needed with this tutorial
http://docs.appery.io/tutorials/build...

I believe the hidden label can be used for storing id's similar to meta data


Is there a way to make an image clickable?

Posted: Tue Oct 01, 2013 6:59 am
by Kateryna Grynko

Hi Greg,

This is a good solution. You can also store data in a localStorage variable.