Guest User

Untitled

a guest
Feb 12th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <xh:html xmlns:xf="http://www.w3.org/2002/xforms"
  2. xmlns:ev="http://www.w3.org/2001/xml-events"
  3. xmlns:xh="http://www.w3.org/1999/xhtml">
  4. <xh:head>
  5. <xf:model>
  6. <xf:instance>
  7. <instance>
  8. <value/>
  9. <show-help>false</show-help>
  10. <help/>
  11. </instance>
  12. </xf:instance>
  13. <xf:bind ref="value" relevant="../show-help = 'true'"/>
  14. </xf:model>
  15. </xh:head>
  16. <xh:body>
  17. <xf:trigger>
  18. <xf:label>Toggle</xf:label>
  19. <xf:setvalue ev:event="DOMActivate" ref="show-help" value="if (. = 'true') then 'false' else 'true'"/>
  20. </xf:trigger>
  21. <xh:br/>
  22. <xf:input ref="help">
  23. <xf:label>Help message:</xf:label>
  24. </xf:input>
  25. <xh:br/>
  26. <xf:input ref="value">
  27. <xf:label>Value:</xf:label>
  28. <xf:help ref="../help"/>
  29. </xf:input>
  30. </xh:body>
  31. </xh:html>
Advertisement
Add Comment
Please, Sign In to add comment