Name

<fb:js-string/>

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.

Optional

None.

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>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.9.169