Synopsis
<fb:js-string var="...">...</fb:js-string>
Loads rendered FBML into a JavaScript variable to be
accessed later via FBJS. This can be a great way to render FBML
before passing it to the JavaScript.
FBML-Specific Attributes
Required
var=[string
]
default: none
The name of the variable that can be accessed
later via FBJS.
Example FBML
Here is example FBML code for the
<fb:js-string/>
tag:
<fb:js-string var="test_var">
Hello <fb:name uid="loggedinuser"/>!
</fb:js-string>
<div id="test_div"></div>
<a href="#" onclick="document.getElementById('test_div').
setInnerFBML(test_var)">Display test_div</a>