justinmind-logo
 
Upvote 1

Is there an event listener solution/ or some kind of way to make change on variable to affect some element?

Answered Victor Conesa 8 years ago

If to be specific - what i'm trying to achieve is having cross-screens variable (logged-in / not-logged-in) and elements on the page to be influenced by that variable value.


I can do it only on page load or unload - however I need it to act as a listener - since the value of the variable can be changed without moving to other screen.


Thanks.

Replies (1)
photo
1

Hi Shimon,


This is definitely possible with conditional events. For example, you can have an on-click event that detects whether or not the user is logged in through a variable. If that variable equals a certain value, it will link to a certain page.


If this is unclear, feel free to send us your prototype and we can help implement these events.


Best,


Danielle

Leave a Comment
 
Attach a file