search for: dialog_contextual

Displaying 1 result from an estimated 1 matches for "dialog_contextual".

2008 Mar 30
0
javascript confirm function in FBJS
I''d like to add the :confirm option in the link_to_remote and replace the missing confirm function with Facebook''s Dialogs. function confirm(text) { dlg = new Dialog(Dialog.DIALOG_CONTEXTUAL).showChoice(''Confirm Request'', text , ''Yes'', ''No''); dlg.onconfirm = function() { return true; }; dlg.oncancel = function() { return false; }; } The above code doesn''t work because confirm needs to return true or false as seen below: i...