Sharath: It looks like you're the only one who isn't seeing both the
image and text. Even so, try using two anchors instead of one and see
if this works for you:
var bodyMarkup = '<a href="/AppInfo.aspx"><img src="http://
hosting.gmodules.com/ig/gadgets/file/default.jpg"/></a>' + '<a href="/
AppInfo.aspx">TEXT HERE</a>';
activity_params[opensocial.Activity.Field.BODY] = bodyMarkup;
- Jason
On Jun 20, 7:32 am, Pedro Teixeira <[EMAIL PROTECTED]> wrote:
> Does any one know if param STREAM_FAVICON_URL is supported in orkut?
>
> []'s
> Pedro
>
> On Jun 20, 1:32 am, sharath <[EMAIL PROTECTED]> wrote:
>
> > Hi Rohit,
>
> > Any solution avbl yet for the image and not text appearing
> > simultaneously?
>
> > Regards
> > Sharath
>
> > On Jun 18, 9:14 am, "Rohit Ghatol (Google)"
>
> > <[EMAIL PROTECTED]> wrote:
> > > Hi Sharath,
> > > I tried this on Windows XP box using firefox, it shows me the text
> > > too.
>
> > > Here is the complete example I tried to run in Code runner
>
> > > 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>';
> > > varactivity= 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('createactivitygood!')
> > > }
>
> > > }
>
> > > Thanks,
> > > Rohit
>
> > > On Jun 18, 6:16 am, sharath <[EMAIL PROTECTED]> wrote:
>
> > > > Hi Jason,
>
> > > > I am also using the same version of firefox in windows XP.
> > > > I am getting only image but not text.
> > > > Better show me the syntax to use it as two separate tags.
>
> > > > Thanks
> > > > Sharath
>
> > > > On Jun 18, 5:57 am, Jason <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi Sharath. I'm seeing both the image and text in Firefox 2.0.0.14 on
> > > > > Mac OS X. Please provide your platform details (browser and OS) and a
> > > > > screenshot, and I'll look into this further. Alternatively, you could
> > > > > try using two anchor tags, one with the image and the other with the
> > > > > text to see if this fixes the issue.
>
> > > > > As an aside, HTML attributes should always be in double quotes. This
> > > > > probably isn't causing your problem, but it could cause problems
> > > > > later:
>
> > > > > activity_params[opensocial.Activity.Field.BODY] = '<a href="/
> > > > > AppInfo.aspx"><img src="http://hosting.gmodules.com/ig/gadgets/file/
> > > > > default.jpg"/>TEXT HERE</a>';
>
> > > > > - Jason
>
> > > > > On Jun 16, 3:59 am, sharath <[EMAIL PROTECTED]> wrote:
>
> > > > > > hello,
>
> > > > > > I have got the below code line for the body of anactivitystream.
> > > > > > Only the image is getting displayed but not the corresponding text.
>
> > > > > > activity_params[opensocial.Activity.Field.BODY] = "<a href='/
> > > > > > AppInfo.aspx'><img src='http://hosting.gmodules.com/ig/gadgets/file/
> > > > > > default.jpg'>TEXT HERE</a>";
>
> > > > > > Kindly suggest the required modification
>
> > > > > > Thanks and Regards
> > > > > > Sharath
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---