Hi Nikhil,

   Use the following code to request navigation between views:

gadgets.views.requestNavigateTo(new gadgets.views.View("profile"));
   or
gadgets.views.requestNavigateTo(new gadgets.views.View("canvas"));

Make sure you have require feature="views" specified as well.

Hope this helps,
~Arne


On Feb 9, 2008 12:21 PM, :nikhil_gupte <[EMAIL PROTECTED]> wrote:

>
> Has this been sorted yet?
>
> If yes, I'm not being able to redrect using the following code:
>
> gadgets.views.requestNavigateTo(gadgets.views.ViewType.FULL_PAGE
> ,'key1=value1');
>
> Am I missing anything?
>
> On Feb 8, 12:14 pm, Jerome <[EMAIL PROTECTED]> wrote:
> > I had the same problem this afternoon during the Hackathon, the bug
> > has been reported to the engineer.
> >
> > jerome
> >
> > On Feb 7, 9:38 pm, Jim <[EMAIL PROTECTED]> wrote:
> >
> > > Thanks a lot mate ;)
> >
> > > But it seems to be the "gadgets.views.requestNavigateTo() " is not
> > > working!!
> >
> > > I tried the following code...
> >
> > >         var views = gadgets.views.getSupportedViews();
> > >         gadgets.views.requestNavigateTo(views.canvas,'key1=value1')
> >
> > > I can see some request is going (with tamper data addon) but the
> > > response header says 404 (not found)
> > > I am doing anything wrong?? please let me know
> >
> > > ~ Jim
> >
> > > On Feb 8, 5:19 am, Jason <[EMAIL PROTECTED]> wrote:
> >
> > > > Hi Jim.
> >
> > > > According to the updated specification, gadgets.views.getParams()
> > > > returns only those parameters passed into
> > > > gadgets.views.requestNavigateTo() -- all other URL parameters are
> > > > ignored. Is there any way you can implement your gadget's
> > > > functionality without these parameters? If you provide some more
> > > > information, we may be able to help you determine a workaround.
> >
> > > > - Jason
> >
> > > > On Feb 7, 3:21 am, Jim <[EMAIL PROTECTED]> wrote:
> >
> > > > > Hi,
> >
> > > > > I was using "opensocial.getEnvironment().getParams();" to access
> input
> > > > > url parameters to the xml file and was working.
> >
> > > > > According to 0.7 doc, it should be used as
> > > > > "gadgets.views.getParams()". I am getting an OBJECT in return
> which
> > > > > doesn't have any parameters in it. Anybody here figured it out??
> > > > > please help!!
> >
> > > > > ~ Jim
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" 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-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to