oh ok!

simply add it as
http://142.155.172.23/opensocial/friends.xml<http://142.155.172.23/opensocial/friends.xml?bpc=1>...
but when u viewing ur app in canvas or profile, append &bpc=1 to avoid
cache.

Cheers!
Rajiv

My App: Flaunt It!

On Fri, Jun 13, 2008 at 6:59 PM, Vishwa <[EMAIL PROTECTED]> wrote:

>
> Hi Rajiv,
>
> Might be i am using it differently!!
>
> I am using bpc=1 whenever i add app. to the sandbox like this :
> http://142.155.172.23/opensocial/friends.xml?bpc=1
> Is it a right syntex? or i should use '&' instead of  '?' . I guess, i
> have to add the above url just once and whenever i change my
> friends.xml file , the changes should reflect on the app...and i don't
> have to add the application again and again. Am i right?
> Please tell me how to use it correctly?
>
> For Rajesh, The code i am using to fetch friends is here:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <Module>
> <ModulePrefs title="Hello Friends Part 2!" author ="Vishwa"
> author_email="[EMAIL PROTECTED]" description="This is My First
> Gadget to Fetch Friends.">
> <Require feature="opensocial-0.7" />
> </ModulePrefs>
> <Content type="html">
> <![CDATA[
> <script language="text/javascript">
>  function getData() {
>    var req = opensocial.newDataRequest();
>        var opt_params = {};
>
> opt_params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]=
> [
>                opensocial.Person.Field.PROFILE_URL,
>        ];
>
>
> req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER,opt_params),
> 'viewer');
>
> req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS,opt_params),
> 'viewerFriends');
>        req.send(onLoadFriends);
>  };
>
>  function onLoadFriends(dataResponse) {
>     var viewer = dataResponse.get('viewer').getData();
>    var html = 'Friends of ' + viewer.getDisplayName();
>    html += ':<br><ul>';
>
>    var viewerFriends = dataResponse.get('viewerFriends').getData();
>    viewerFriends.each(
>                function(person){
>
> thumb=person.getField(opensocial.Person.Field.THUMBNAIL_URL);
>                  uid=person.getField(opensocial.Person.Field.ID);
>
> profile=person.getField(opensocial.Person.Field.PROFILE_URL);
>              html += '<li><img src='+thumb+'>' +
> person.getDisplayName() +
> '('+profile+')</li>';
>        }
>     );
>
>    html += '</ul>';
>    document.getElementById('message').innerHTML = html;
>  };
>  gadgets.util.registerOnLoadHandler(getData);
> </script>
> <div id="message"></div>
> ]]>
> </Content>
> </Module>
>
> Thanks,
>
> ~~Vishwa~~
> >
>


-- 
-------------------------------------------------------------------------------------------------
DealSearchMaadi.com > Searching over 12 websites for shopping deals across
India.
-------------------------------------------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to