So you want to use the value of title_url as the address of an
IFrame?  Why not just copy the url and use it in your application?

~Arne


On Sep 23, 8:31 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> hai  below is our code i want to Retrive the title_url value which can
> be written in modulpref tag. how can i retrive the data.Because that
> url i can bind that src to iframe. please send me the reply as soon as
> possible . Do need ful fo this.
> Thanks&Regards
> Anitha.A
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <Module>
>   <ModulePrefs title="Test InnerHtml" title_url="http://www.dc-
> epaper.com/DC/DCH/2008/09/23/index.shtml" author="Epaper"
> thumbnail="http://dc-epaper.com/DC/DCH/2008/09/08/pagethumb/
> 08_09_2008_001.JPG" author_email="[EMAIL PROTECTED]"
> height="700" width="700" description="Test InnerHtml">
>     <Require feature="opensocial-0.8"/>
>     <Require feature="views"/>
>   </ModulePrefs>
>   <Content type="html">
>     <![CDATA[
> <iframe id="content_div" name="content_div" width="800" height="600">
> <img id="img1" >
> </iframe>
> <script type="text/javascript">
> function Show(val)
> {
> var testFrame = document.getElementById("content_div");
> var doc = testFrame.contentDocument;
> if (doc == undefined || doc == null)
> doc = testFrame.contentWindow.document;
> doc.open();
> doc.write(val);
> doc.close();
> document.all.content_div.style.visibility="visible";}
>
> function Loading()
> {
> var reqObj = opensocial.newDataRequest();
> //reqObj.add( reqObj.newFetchPersonRequest( 'OWNER' ), 'myOwner' );
> reqObj.add(reqObj.newFetchPersonRequest(opensocial.IdSpec.PersonId.OWNER),"myOwner");
> reqObj.add(reqObj.newFetchPersonRequest(opensocial.IdSpec.PersonId.VIEWER),"myViewer");
> //reqObj.add( reqObj.newFetchPersonRequest( 'VIEWER' ), 'myViewer' );
> //
> req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER),
> 'viewer');
> //
> req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS),
> 'viewerFriends');
> //var params = {};
> params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
> [opensocial.Person.Field.PROFILE_URL];
> req.add(req.newFetchPersonRequest("VIEWER", params), "viewer");
> //
> req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.OWNER,params),
> 'owner');
> reqObj.send(LoadUsers);
>
> }
>
> //Calling the Function onload
> gadgets.util.registerOnLoadHandler(Loading);
>
> function LoadUsers(obj)
> {
> if( obj.hadError() || obj.get('myOwner').hadError() ||
> obj.get('myViewer').hadError()){
> // handle the error
> alert("abc");
>
> }
>
> var owner = obj.get('myOwner').getData();
> var viewer = obj.get('myViewer').getData();
> alert(owner.getDisplayName());
> alert(obj.text);
> var thumb = owner.getField(opensocial.Person.Field.THUMBNAIL_URL);
> alert(thumb);
> document.getElementById("img1").src = thumb;
> var profile = owner.getField(opensocial.Person.Field.PROFILE_URL);
> alert(profile);
> document.getElementById("content_div").src = profile;};
>
> </script>
> ]]>
>   </Content>
> </Module>
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to