what platform are you working on (orkut, hi5, myspace, ning, etc.)?

________________________________

From: opensocial-api@googlegroups.com on behalf of None
Sent: Fri 5/1/2009 9:42 PM
To: OpenSocial - OpenSocial Application Development
Subject: [OpenSocial] Re: Include Media Items (Image) in an Activity.




Please reply if anyone know the solution...its urgent...

On Apr 28, 10:44 am, None <amit....@gmail.com> wrote:
> I want to include Media Items (Images) in an Activity entry... I have
> not been able to get any images to appear.
> This is the code that I've tried:
>
> =====================================CODE
>     var params = {};
>     params[opensocial.Activity.Field.TITLE] = text;
>   //params[opensocial.Activity.Field.BODY] = body;
>
>     //to show image
>     var mediaItems = new Array();
>     var mediaItem = opensocial.newActivityMediaItem
> (opensocial.Activity.MediaItem.Type.IMAGE,
>       "http://mywebsite/images/image.gif";);
>     mediaItems.push(mediaItem);
>     params[opensocial.Activity.Field.MEDIA_ITEMS] = mediaItems;
>
>     var activity = opensocial.newActivity(params);
>     opensocial.requestCreateActivity(activity,
> opensocial.CreateActivityPriority.HIGH, callback);}
>
> =====================================END CODE
>
> The above code successfully creates new activity with proper text, but
> only the problem with this code is it does not display image.
>
> Any help is appreciated!
>
> Thanks in advance
> Amit





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to