Is it possible to have a clickable image?

I have an image stored in a clob field, but have a requirement for the user to able to click on a smaller verison of the image and then call another part of the application, but the image is differnet in each case. This is within a grid.

Cheers Simon

asked 19 Oct '15, 09:37

apacheuk's gravatar image

apacheuk
1391223
accept rate: 0%


Hi Simon,

Unfortunately, the image component in Formspider does not have a click event. You can put a hyperLink component or a button next to the image to navigate the user to the desired state in the application.

Hope this helps.

Kind Regards,
Yalim

link

answered 19 Oct '15, 11:59

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
1.8k5
accept rate: 15%

They really want to be able to click the image, you know how users are.

any idea why I can't get the <click> event to fire and then call my action? Can get the <rightclick> event to work no problem.

Simon

link

answered 19 Oct '15, 12:07

apacheuk's gravatar image

apacheuk
1391223
accept rate: 0%

edited 19 Oct '15, 12:08

When using a <hyperlink> tag can someone tell me if the <click> event is supposed to fire, so that if I have an action associated with that event it should fire when I click the link? If it is supposed to fire does it fire after the hyperlink or before?

What I mean is, I have the hyperlink based on a column and this column has say google.co.uk in it, I also have 2 events <click> and <rightclick> associated with the hyperlink. When I run the app I can right click on the link and the <rightclick> event fires immediately, however the <click> event "appears" to fire after the navigation to google.co.uk has happened.

Also, if my column doesn't contain a value the <click> event doesn't seem to fire yet the <rightclick> does.

Sorry just trying to understand how this should work, as if the <click> event were to fire I would be able to use this to get round my issue.

link

answered 20 Oct '15, 03:08

apacheuk's gravatar image

apacheuk
1391223
accept rate: 0%

Hi Simon,

Can you create a sample application with the issue and paste its XML and SQL here please? I did a small test and it all seems to work for me. The URL that the hyperLink points to opens and the click event fires. If you think this needs urgent attention, please open a support request.

Kind Regards,
Yalim

(20 Oct '15, 04:57) Yalim Gerger ♦♦

Hi Simon,

I think I figured out what you did to make it work. (The href trick :-) )

This is not how Formspider supposed to work. You are actually exploiting a bug. We strip out most of the tags inside attribute values because of security reasons. So even if it this worked, we would have patched the bug eventually.

So we are back to where we started I guess. Unfortunately, Formspider does not have clickable images yet. My workaround recommendation is to have an unclickable image and a clickable hyperLink next to it.

Kind Regards,
Yalim

(20 Oct '15, 05:12) Yalim Gerger ♦♦

I basically looking for ways to work round my current issue. I found that using the <hyperlink> tag I can put this HTML <a href=""><img src="someimageurl"></a> in the column on the DB, that means the image displays correctly when the app runs, but obviously the link goes know where. I was then hoping to use the <click> event to redirect the user to parts of the app based on what image is diplayed if any.

unfortunately the <click> event doesn't seem to fire unless the link is valid.... however the <rightclick> does fire, but using the right mouse button to click links/buttons isn't a good idea.

If this work around had worked ie the <click> event fired regardless of whether there was a link or not (like the <rightclick> event currently does.... it would have meant I could have had differnet images per row and they still would have been clickable.

But doesn't look like its gonna work.... so...

My next idea was to have it on a button.... but is it possible to set a button visible or enabled at row level in a grid, ie depending on some column value disable or enable a button diaplyed in a grid?

Sorry if I'm asking a lot of questions, but just trying to give the users what they are asking for on this first Formspider project for our company.

link

answered 20 Oct '15, 05:13

apacheuk's gravatar image

apacheuk
1391223
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×85
×10
×7

Asked: 19 Oct '15, 09:37

Seen: 902 times

Last updated: 20 Oct '15, 05:13


© Copyright Gerger 2017