Name

<fb:success/>

Synopsis

<fb:success>...[<fb:message>...</fb:message>]</fb:success>

Renders a standard Facebook success message. This message appears in a standard pink box.

FBML-Specific Attributes

Required

message=[string] default: none

The explanation message heading to display in the success box. Optionally, you can use an <fb:message/> internally to specify the success heading.

Optional

decoration=[no_padding|shorten] default: none

Modifies the appearance of the success box. no_padding removes the 20 pixels of padding that surrounds the success box, and shorten removes the 20 pixels of padding below the success message.

Example FBML[5]

Here is example FBML code for <fb:success/> by itself (using the message attribute):

<fb:success message="Congratulations! You pressed the green button."/>

And here is example FBML code for <fb:success/> with an <fb:message/> tag embedded:

<fb:success> Congratulations! You pressed the green button. 
    <fb:message> Congratulations! </fb:message> </fb:success>

Rendered HTML for Single Instance of Tag

The rendered HTML for the first example looks like this (Figure 3-6 shows the resulting success message):

<div class="standard_message has_padding"><h1 class="status"> 
    Congratulations! You pressed the green button. </h1></div>
The <fb:success/> tag by itself
Figure 3-6. The <fb:success/> tag by itself

The rendered HTML for the second example looks like this (Figure 3-7 shows the resulting success message):

<div class="standard_message has_padding"><h1 class="status"> 
    Congratulations! <p> Congratulations! You pressed the 
    green button. </p> </h1></div>
The <fb:success/> tag when used with <fb:message/>
Figure 3-7. The <fb:success/> tag when used with <fb:message/>

Additional Information

  • The <fb:success/> tag must contain one <fb:message/> tag or one message attribute to specify the success heading text.

  • The content for the explanation is optional.



[5] You can see this example in action at http://apps.facebook.com/fbmlessentials/?action=success.

..................Content has been hidden....................

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