2 messages in com.googlegroups.opensocial-orkut[orkut-developer] html not working in...| Subject: | [orkut-developer] html not working in opensocial.requestSendMessage![]() |
|---|---|
| From: | zeos (zenm...@gmail.com) |
| Date: | 06/23/2008 04:39:24 PM |
| List: | com.googlegroups.opensocial-orkut |
I have the code (in sandbox) I : function vgiftSend(item_dbId) { showmsg('infowinpf', 'Sending ... ' + item_dbId) var params = {}; params[opensocial.Message.Field.TITLE]="vGift for you!"; //params[opensocial.Message.Field.BODY]=item_dbId; var body= '<span><img src="http://ecx.images-amazon.com/images/I/ 5197gq9yIgL._SL160_.jpg" /></span><a href=#" > The Tenant of Wildfell Hall </a>'; var message = opensocial.newMessage(' ', params); var recipient = opensocial.DataRequest.PersonId.OWNER; //var recipient = opensocial.DataRequest.Group.OWNER_FRIENDS; // this is supposed to show auto complete friend chooser dialog //var recipient = opensocial.DataRequest.Group.VIEWER_FRIENDS; // this is supposed to show auto complete friend chooser dialog opensocial.requestSendMessage(recipient, message, callbackvgiftSend); }
But Orcut removes all html markup. I am working on sending virtual gift app. In order for this app to make sense I must use html markup that also includes inline styling which is in the item_dbId parameter in the function call.
Secondly orcut ruins the whole user experience that I am designing by presenting its own dialog box (e.g. asking the user to enter personal message in the body). I provide much richer dialogs to select friend and to enter personal message ( this part is not in the code above and am not using yet). If orcut wanted to make sure message are not sent programmatically or spam etc., it could simply present a captcha or a simple dialog to ask user if he really wanted to send the messsage.
As you can see several commented out code which I was trying different combinations but none of them work. I also tried to use above both on canvas and profile surface but same issue.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Orkut
Developer Forum" group.
To post to this group, send email to open...@googlegroups.com
To unsubscribe from this group, send email to
open...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---




