Forum Documentation Showcase Pricing Learn more

Not So Stupid JavaScript Tricks: Span Class Fun

#1

Another quite informative video: @d.norkus asked a fascinating question about handling link-like behavior in a text element today. “Could different parts of a humble text element trigger different workflow actions?”

Turns out they could:

For context, see original thread here:

4 Likes

Hyperlink Checkbox Text
Is it possible to trigger a popup using BBcode?
#2

Hi @Keith do you know how i could do this for when a span is held down, sort of like bubble’s pressed condition
image
I tried showing a shape when an element was pressed to trigger workflow but it didnt work.

I want this function for when a profile image is pressed down to trigger workflow that shows users story, when clicked go to profile.

I think its mousedown, then i will have to set a condition for the span to change it touch down for mobile maybe.
https://www.w3schools.com/jsref/event_onmousedown.asp
https://www.w3schools.com/jsref/event_touchstart.asp

0 Likes