2 messages in com.googlegroups.opensocial-orkut[orkut-developer] Re: Posting Image a...
FromSent OnAttachments
sharath22 Jun 2008 08:40 
Jason23 Jun 2008 15:51 
Subject:[orkut-developer] Re: Posting Image and Text in Activity Stream
From:Jason (apij@google.com)
Date:06/23/2008 03:51:39 PM
List:com.googlegroups.opensocial-orkut

Please see my response to your question here:

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

On Jun 22, 8:41 am, sharath <shar@gmail.com> 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!')   }

}