greg keys
Posts: 0
Joined: Wed Sep 25, 2013 4:32 am

Is there a way to make an image clickable?

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.

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

Is there a way to make an image clickable?

Hi Greg,

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

greg keys
Posts: 0
Joined: Wed Sep 25, 2013 4:32 am

Is there a way to make an image clickable?

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

greg keys
Posts: 0
Joined: Wed Sep 25, 2013 4:32 am

Is there a way to make an image clickable?

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

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

Is there a way to make an image clickable?

Hi Greg,

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

Return to “Issues”