i realize this is beyond the scope of the current module but thought i would ask anyway. is there a way to tweak form_tooltips.js so that the description is revealed when the user clicks a link or hovers over a link? adding a simple link to the legend i will accomplish via theme overrides, but i would like a little more control of when the tooltip is displayed.

many thanks for the help. i'm finding my understanding of jquery to be surpassed by this problem.

Comments

entrigan’s picture

sorry for the delayed response. I actually have come to think this is the preferred default behavior. Implementing this by itself is quite easy, but the difficult part is making sure it formats correctly and consistently.

Right now the module uses JQuery to hide the contents of the help text. To make it a link one would simply need to use the appropriate jquery property, http://docs.jquery.com/Manipulation to add a link.

I know I did not explain that particularly well, but I will work on an implementation later this week.

masande’s picture

interesting. i was looking at jquery events. looking forward to seeing your new implementation. if i have some time, i'll look into adapting, too.

masande’s picture

entrigan~

any updates on introducing the onclick functionality for tooltips? i'm not such a great jquery developer and anxiously wait for you (or someone) to create this modification.

thanks!

entrigan’s picture

masande,

Sorry I lost track of this issue, things got busy elsewhere. I am currently having trouble with the hover/click events. Hopefully Ill get this sorted out tonight, well see what happens.

entrigan’s picture

Still causing me issues . .

FredAt’s picture

Title: expose tooltip onclick instead of hover » Vanilla descriptions reappear after AHAH update

Form tooltips work just fine - until I perform an AHAH update on part of a form. You don't need to go very far to test this - try the ahah demo module here. You might need to insert descriptions. When the AHAH update happens the tooltips continue to appear but so too do the plain text descriptions that Drupal displays by default.

Correction - the tooltips continue to appear for the part of the form that remains unchanged. For the rest you are back to vanilla.

masande’s picture

Title: Vanilla descriptions reappear after AHAH update » expose tooltip onclick instead of hover

I'm changing the title back to original topic as 'FredAt' seems to be describing a different problem unless I am misunderstanding. Please open a new issue for this problem and keep the focus on an onclick event for form tooltips.