NetTalk Central

Author Topic: Conditional div  (Read 2600 times)

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Conditional div
« on: September 26, 2011, 11:04:02 PM »
Is it possible to set conditional div class and fieldset class?
For example I want nt-hidden for div class, or/and fieldset class, its works... But also I need to change or disable this when logged in:
! embeded in HeadingWhenLoggedIn  Routine
IF p_web.GSV('Logged')=1
  loc:class = ''
  packet = clip(packet) & '<div '&p_web.wrap('class',loc:class)&'>'
else
  loc:class = 'nt-hidden'
  packet = clip(packet) & '<div '&p_web.wrap('class',loc:class)&'>'
END

That didn't work.
Any help about that?