cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

toggling image visibility

Highlighted
Regular Member

toggling image visibility

i am trying to toggle the visibility of an image and i am using this service to be refreshed every 5sec

var output = me.tests().Value;

if (output == 1)  {    

result = false;     

pause (2000);   

result = true; 

}


but it's not working and i can't understand what's the issue

any suggestions ?

Tags (1)
3 REPLIES 3

Re: toggling image visibility

try it with an autorefresh widget and remove the pause.

So you can have an expression widget that validates a value and says !value and also outputs that

add an auto refresh to fire that expression widget.

and just have those elements invisible.

Re: toggling image visibility

that still doesn't work

and i still need to be able to set the time between the toggles because  i have more than one image widget that i want them to appear in a curtain sequence.

Re: toggling image visibility

I think ability to set the Time period and ability to show something in a curtain is two different things.

To do a 'curtain' style, we recommend using an animated gif sequence into a media entity.

If you need to show images in certain sequences, you can use the expression widget to track where in the sequence you are and use validation widgets to then show the proper items.

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________