Please see my response to your question here:

http://groups.google.com/group/opensocial-orkut/browse_thread/thread/eb2cce688ccffcff/bddf9c4aa6b23b4a#bddf9c4aa6b23b4a

- Jason

On Jun 22, 8:41 am, sharath <[EMAIL PROTECTED]> wrote:
> Any body please let me know the code to insert both text and image in
> the activity stream.
>
> This is the code i tried which inserts only image but not the
> corresponding text:
>
> function createActivity() {
>   var title= '';
>   title = ', Title ';
>   var activity_params=[];
>   activity_params[opensocial.Activity.Field.TITLE] = title;
>   activity_params[opensocial.Activity.Field.BODY] = '<a href="/
> AppInfo.aspx"><img src="http://hosting.gmodules.com/ig/gadgets/file/
> default.jpg"/>TEXT HERE</a>';
>   var activity = opensocial.newActivity(activity_params);
>
>   opensocial.requestCreateActivity(activity,
> "HIGH",getCreateActivityResp);
>
> }
>
> function getCreateActivityResp(responseItem) {
>   console.log(responseItem);
>   var htmlout = '';
>   if(responseItem.hadError()){
>     //htmlout= 'has error: ' + responseItem.ErrorMessage;
>     //alert(responseItem.ErrorMessage +'has error');
>   }
>   else{
>     alert('create activity good!')
>   }
>
> }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to