2 messages in com.googlegroups.opensocial-orkut[orkut-developer] Re: Posting Image a...| 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:
- Jason
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!') }
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---




