I've examined the IE/Firefox issue in the group OpenSocial Browser
Testing (http://groups.google.com/group/opensocial-browser-testing?
lnk=li) currently, you can't really do much in IE, but I've recieved
assurances that the issues will be addressed before the 1.0 launch.
On Nov 30, 4:24 pm, codewarrior415 <[EMAIL PROTECTED]> wrote:
> Thanks, you saved me some hair!!!
>
> On Nov 30, 11:37 am, Dustin Jorge <[EMAIL PROTECTED]> wrote:
>
>
>
> > Simple answer... the IE implementation is really buggy at this point,
> > and breaks most everywhere, so use Firefox and keep your hair :).
>
> > I'm doing basic IE testing on my beta apps before implementing
> > opensocial functionality, if I can... kind of a pain, but I figure it
> > will save me precious time when the opensocial namespace isn't broken in IE.
>
> > -Dustin
>
> > codewarrior415 wrote:
> > > So the code errors out if you are a viewer of the application. What am
> > > I doing wrong?
> > > I am just trying to figure out if the user is a viewer or an owner of
> > > the application. It errors out in IE.
>
> > > <pre>
>
> > > /**
> > > * Request for friend information when the page loads.
> > > */
> > > function getData() {
>
> > > document.getElementById('message').innerHTML = 'Requesting
> > > friends...';
>
> > > var req = opensocial.newDataRequest();
>
> > > req.add(req.newFetchPersonRequest('VIEWER'), 'viewer');
> > > req.send(onLoadFriends);
>
> > > };
>
> > > /**
> > > * Parses the response to the friend information request and generates
> > > * html to list the friends along with their display name and picture.
> > > *
> > > * @param {Object} dataResponse Friend information that was requested.
> > > */
> > > function onLoadFriends(dataResponse) {
>
> > > var viewer = dataResponse.get('viewer').getData();
> > > if(!viewer.isOwner()){
> > > document.getElementById('message').innerHTML = "You are a Viewer.";
> > > }else{
> > > document.getElementById('message').innerHTML = "You are an Owner.";
> > > }
>
> > > };
> > > _IG_RegisterOnloadHandler(getData);
>
> > > </pre>- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial API Definition" 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
-~----------~----~----~----~------~----~------~--~---