You are viewing limited content. For full access, please sign in.

Question

Question

tooltip image

asked on May 27, 2016 Show version history

Hi

I am trying to add an image as tooltip. I know jquery is capable of this

<a id="riverroad" href="#" title="" >image of 1 Maple St.</a>
$( "#riverroad" ).tooltip({ content: '<img src="http://icdn.pro/images/fr/a/v/avatar-barbe-brun-homme-utilisateur-icone-9665-128.png" />' });

basically i have radio buttons with name of the files in repository and their values are entry id's. so i have all the information i need. problem is getting their image. 

First, option is that i store images somewhere forms can access them. any suggestions?

Second, option is that somehow image is retrieved from repository in an instant if possible (pages are already generated). any suggestions? 

thanks in advance

Junaid Inam

0 0

Answer

SELECTED ANSWER
replied on May 31, 2016

To use the tooltip function, you need to include the jquery-ui script on the form.

And for the image path, you may place your images under xx\Laserfiche Forms\Forms\img folder, and access the image with src like "./img/image.png"

1 0
replied on May 31, 2016

One question though. How does Laserfiche store generated images in folder structure? like tiff or some other format. is there a way for me to grab those directly using entry id?

Reason i am asking is because doc might keep updating so images that i store might not be updated ones.

Thanks

0 0
replied on June 3, 2016

Sorry I thought that you were using images on physical path so I meant placing the images manually. I'm not sure if it's possible to use image stored in repository directly.

0 0

Replies

replied on May 27, 2016

Junaid,

Actually the problem is that "tooltip" is part of the jQueryUI library and not jQuery. Also, I am not sure of the version that Forms uses either but the example that you obtained your code from shows that they are using jQuery 1.9.x and jQueryUI 1.9.x

 

http://jsfiddle.net/soyuka/vvVwD/

 

https://jqueryui.com/tooltip/

 

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.