hi, jus put this code in the CDATA section before <script type="text/javascript">
<embed type="application/x-shockwave-flash" src=" http://u15334027.onlinehome-server.com/Rummy/SmartRummyGame.swf" width="600" height="500" quality="high" scale="noscale" salign="LT" wmode="transparent" menu="false" allowfullscreen="true"></embed>'; The problem is that xml file is not reading the code under java script. -vinodh On Sat, Jan 30, 2010 at 11:22 AM, Ramya kondeti <kondetira...@gmail.com>wrote: > Hi, > this is my XML application. It is just showing a blank screen instead of > the game. And moreover when I add an application in the sandbox, I am unable > to see it from my friends orkut. Do I need to do any other thing for that? > Do I need to my application to be confirmed before it can be seen in the > directory? > > <?xml version="1.0" encoding="UTF-8" ?> > <Module> > <ModulePrefs title="RUMMY" thumbnail=" > http://u15334027.onlinehome-server.com/Rummy/gameAssets/bulkcard.png" > screenshot=" > http://u15334027.onlinehome-server.com/Rummy/gameAssets/bulkcard.png" > description="A fantastic rummy online game" author="GOLIVE" author_email=" > sri...@golive.co.in" icon="GAME_FAV_ICON"> > <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[ > <!-- > ALm6fM0NUsoCKIosimHj9dbZkXolkfCwAmevPau/NxfNBl0gBnMJOFXwTw3YgK/pQ3NZmPV/sxh3UJpT+ifR5yXuh/9gNf4gsdus1IW8IWwX4TEKwpx1guzek036kcXaQ9C/3jdvzhuNj+Xx3H2sxb9rA48kLBt/Vw== > --> > > <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 > <http://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 <http://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 > type="application/x-shockwave-flash" src=" > http://u15334027.onlinehome-server.com/Rummy/SmartRummyGame.swf" > width="600" height="500" quality="high" scale="noscale" salign="LT" > wmode="transparent" menu="false" allowfullscreen="true"></embed>'; > > /******************************************end canvas > view**********************************************/ > }//end get response function > > </script> > > <div id="main"></div> > > ]]> > > </Content> > </Module> > > On Wed, Jan 27, 2010 at 6:15 PM, Dhaval Pancholi > <dhavalyo...@gmail.com>wrote: > >> Hi Ramya can you share your application xml so that i can look into >> it. >> because >> >> "But my application is just showing a blank screen instead of loading >> the game. " >> just does nothelp to debug the issue . >> >> -- >> 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. >> >> > > > -- > Ramya Kondeti > > -- > 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.