string scf.clientvar(string data)
This method is helpful when you wish to pass string values to the client/browser that refer to client entities, such as Javascript variables.
In this example, we add an SCF behavior, then attach the behavior to an HTML element using custom behavior settings.
<se:placeholder.addjavascript> $j.scf.behavior.add('TestBehavior', { attach: function(e,s,j){ alert(s.isAnonymous); } }); </se:placeholder.addjavascript> <button id="testButton">Go</button> {scf.behavior.attach('#testButton', TestBehavior, isAnonymous, scf.clientvar(user.isanonymous()) )}