July 2008
Beginner
192 pages
4h 41m
English
<fb:dialogresponse/>
<fb:dialogresponse>...<fb:dialog-content>...</fb:dialog-content>
</fb:dialogresponse>See the <fb:dialog/> tag earlier in
this chapter for attributes and uses of <fb:dialogresponse/>. This tag
takes all the same internal tags that an
<fb:dialog/> box allows, and it also wraps
around any response to a Mock AJAX call within an <fb:dialog/>
box.
None.
None.
Let’s take our example from the <fb:dialog/> section and apply some Mock AJAX
attributes to it. Here is the <fb:dialog/>
call we used earlier, but with Mock AJAX attributes added in the
No button:
<fb:dialog id="my_dialog" cancel_button="true">
<fb:dialog-content><form id="my_form">Do you want to go to my blog?
</form></fb:dialog-content>
<fb:dialog-title>This is the <fb:dialog/> box.</fb:dialog-title>
<fb:dialog-button type="button" value="Yes"
href="http://staynalive.com"/>
<fb:dialog-button type="button" value="No"
clickrewriteurl="http://apps.facebook.com/fbmlessentials/
get_dialog.php" click_rewrite_id="my_dialog"
clickrewriteform="my_form"/>
</fb:dialog>
<p><a href="#" clicktoshowdialog="my_dialog">Click here to display
the dialog... </a></p>The data returned by get_dialog.php will
need to be wrapped in <fb:dialogresponse/> tags like
this:
<fb:dialogresponse> <fb:dialog-title>Response Title</fb:dialog-title> <fb:dialog-content>Response Content</fb:dialog-content> <fb:dialog-button type="button" value="Close"/> </fb:dialogresponse>
Read now
Unlock full access