hi dhaval,
I'm also getting the same white screen as ramya mentioned in the forum..

I'm attaching my xml file along with this mail.If u could pls look into it
and can u suggest how to implement the following.I'm using the shockwave
movie in my script that is  .DCR extension...

On Wed, Jan 27, 2010 at 6:23 PM, Dhaval Pancholi <dhavalyo...@gmail.com>wrote:

>
> Hi vinodh
>
> check the following url  i have given a sample template it should work
> fine.
>
>
> http://groups.google.com/group/opensocial-orkut/browse_thread/thread/756248b127348ba5/b5dca2946cc6c4fd?hl=en#b5dca2946cc6c4fd
>
> Kindly refer  for proper guidelines on making your application
>
> http://code.google.com/apis/orkut/docs/orkutdevguidelines.html
>
> --
> You received this message because you are subscribed to the Google Groups
> "Orkut Developer Forum" group.
> To post to this group, send email to opensocial-or...@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>
>

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

<?xml version="1.0" encoding="UTF-8" ?>
 <Module>
 <ModulePrefs title="GALACTICA"
 
 screenshot="C:\orkut\scr_shot.bmp" description="SPACE SHIP"
 author="VINODH" author_email="vino...@gmail.com" >
 <Locale lang="en"/>
<Require feature="opensocial-0.8"/>
 <Require feature="opensocial-data"/>
 <Require feature="tabs"/>
 <Require feature="opensocial-templates">
 <Param name="process-on-server">true</Param>
 </Require>
 <Require feature="dynamic-height"/>
 <Require feature="views"/>
 </ModulePrefs>

 <Content type="html" view="profile">
 <![CDATA[
 <script type="text/os-template"  xmlns:os="http://ns.opensocial.org/
 2009/extensions">
  <os:NavigateToApp>
         <center style="padding:0; margin:0;"><img
 src="GAME_PREVIEW_IMAGE_URL" border=0 height="250"  style="overflow:
 hidden;"/></center>
 </os:NavigateToApp>
 </script>
 ]]>
 <!--
 The above code will render you game preview image in the profile view
 of the application
 -->
 </Content>

 <Content type="html" view="canvas">

 <![CDATA[
     <!-- Load the application-specific css -->
         <script type="text/javascript" >

         /* gets owner and viewer info */
                 function sendRequest()
                 {
                   if(gadgets.window)
                   {
                             gadgets.window.adjustHeight('800px');
                   }

                         document.getElementById('main').innerHTML='Loading...';
                         var idspec = opensocial.newIdSpec({'userId' : 'OWNER', 'groupId' :
 'FRIENDS'});
                         var idspecviewer = opensocial.newIdSpec({'userId' : 'VIEWER',
 'groupId' : 'FRIENDS'});

                         var req = opensocial.newDataRequest();
                         var owner_params = { };
                         owner_params
 [opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
 [opensocial.Person.Field.NAME,opensocial.Person.Field.GENDER,opensocial.Person.Field.CURRENT_LOCATION,
                         opensocial.Person.Field.PROFILE_URL];

                         var viewer_params={};
                         viewer_params
 [opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]=
 [opensocial.Person.Field.NAME,opensocial.Person.Field.PROFILE_URL];

                         req.add(req.newFetchPersonRequest
 (opensocial.IdSpec.PersonId.OWNER,owner_params),"owner");
                         req.add(req.newFetchPersonRequest
 (opensocial.IdSpec.PersonId.VIEWER,viewer_params),"viewer");

                         /* get owner friends */
                                 var friends_params = {};
                                 friends_params[opensocial.DataRequest.PeopleRequestFields.MAX]
 =1000;
                                 req.add(req.newFetchPeopleRequest
 (idspec,friends_params),'friends');
                                 req.add(req.newFetchPeopleRequest
 (idspecviewer,friends_params),'friendsviewer');
                                 req.send(getResponse);
                         /*end owner friends */
                 }
         /*end*/

                 function getResponse(data)
                 {
                         viewer = data.get("viewer").getData();
                         owner = data.get("owner").getData();
                         friends = data.get('friends').getData();
                         friendsviewer = data.get('friendsviewer').getData();
                         orkut_owner_pic_url=owner.getField
 (opensocial.Person.Field.THUMBNAIL_URL);

                         /*get viewer and owner of application*/
                                 orkut_profile_owner_id = getOrkutId(owner);
                                 if(viewer != null){     orkut_profile_viewer_id = getOrkutId
 (viewer); }
                         /*end*/

         /*****************************************set canvas view html over
 here*********************************/

                 document.getElementById('main').innerHTML ='<div style="padding-
 bottom:15px;"></div><embed src="C:\orkut\galactica_GM_D11.5.dcr" width="750"
 height="500" type="application/x-director"
 AllowScriptAccess="always" wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/";></embed>';

         /******************************************end canvas
 view**********************************************/
         }//end get response function

 </script>

 <div id="main"></div>

  ]]>

   </Content>
 </Module>

Reply via email to