[Logo] Serotonin Software Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
show/hide entity on graphical pages  XML
Forum Index » User help
Author Message
skiv71

Initiate

Joined: 20/07/2010 05:45:18
Messages: 103
Offline

hi,

what would be the easiest way to show or hide an entity on the pages?

i.e. simple point showing mins remaning... but no relevant when the process is not running...

i've had a look and not been able to see anything other than making a white image block and covering the item in question based on simple point integer value.

thanks

Neil
skiv71

Initiate

Joined: 20/07/2010 05:45:18
Messages: 103
Offline

if i cannot do this, i know i can do this, but i dont know the code :-/

server side script... holding register tag...

test tag > 0 then show text box but embed tag value next to text

else show nothing...

i been messing with some syntax but not working..

any pointers please...

thanks
skiv71

Initiate

Joined: 20/07/2010 05:45:18
Messages: 103
Offline

i got this but i dont know how to display the value within the <span> bit :-/

please help

[code]

if (value>0)
return '<span style="background-color:#F8BB00;font-size:10px;font-weight:regular;border:1px solid #F07800;padding:1px 5px 1px 5px;">defrost time left: <span style="font-weight:bold"> 0 mins</span>'
else;
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1454
Offline

Try this:



Best regards,
Matthew Lohbihler
skiv71

Initiate

Joined: 20/07/2010 05:45:18
Messages: 103
Offline

thanks, that worked fine... like to say i understood it lol.....
 
Forum Index » User help
Go to:   
Powered by JForum 2.1.9 © JForum Team