MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

requestNavigateTo broken?

Last post 03-31-2008 5:54 AM by thetmsway. 17 replies.
Page 1 of 2 (18 items) 1 2 Next >
Sort Posts: Previous Next
  • 03-10-2008 11:22 AM

    • Tony
    • Not Ranked
    • Joined on 02-05-2008
    • Posts 3

    requestNavigateTo broken?

    Did something change recently with the way that requestNavigateTo is implemented?  It worked for me last week, but it is not working today. 

  • 03-10-2008 11:31 AM In reply to

    Re: requestNavigateTo broken?

    Hi Tony,

     

    This is a known issue and our developers are working on it. I'll let you know if I hear any updates. THanks

    Rhonda

     

  • 03-11-2008 2:13 PM In reply to

    • Egg
    • Top 50 Contributor
    • Joined on 02-05-2008
    • Posts 73

    Re: requestNavigateTo broken?

    rondata@myspace:

    This is a known issue and our developers are working on it. I'll let you know if I hear any updates. THanks

    Any word yet?

    Filed under:
  • 03-11-2008 2:33 PM In reply to

    Re: requestNavigateTo broken?

     Word.

     This should work again.

  • 03-11-2008 6:37 PM In reply to

    • steven
    • Not Ranked
    • Joined on 02-05-2008
    • Posts 2

    Re: requestNavigateTo broken?

    It appears to be working, but the parameters I'm passing do not seem to be available in the javascript via opensocial.getEnvironment().getParams() (or via gadgets.views.getParams()).

  • 03-11-2008 7:58 PM In reply to

    • Egg
    • Top 50 Contributor
    • Joined on 02-05-2008
    • Posts 73

    Re: requestNavigateTo broken?

    steven:

    It appears to be working, but the parameters I'm passing do not seem to be available in the javascript via opensocial.getEnvironment().getParams() (or via gadgets.views.getParams()).

    No love for me :( requestNavigateTo isn't working at all - forget the params - I can't get to the canvas from profile or home.
    Filed under:
  • 03-14-2008 7:38 AM In reply to

    • Tony
    • Not Ranked
    • Joined on 02-05-2008
    • Posts 3

    Re: requestNavigateTo broken?

     requestNavigateTo is currently working for me from the home surface and the profile surface.  It doesn't seem to work from the canvas surface.

     

    Is there a problem with linking from the canvas surface to the canvas surface?  I'd like to do this to pass parameters to the canvas for navgitation. 

  • 03-14-2008 7:44 PM In reply to

    • Wayne
    • Top 500 Contributor
    • Joined on 02-06-2008
    • Posts 11

    Re: requestNavigateTo broken?

  • 03-25-2008 2:50 AM In reply to

    Re: requestNavigateTo broken?

    rNT from the canvas page to profile is not working for me. Still broken?

  • 03-25-2008 5:39 AM In reply to

    Re: requestNavigateTo broken?

    It shouldn't be, but I've noticed that the "request" seems to get denied except under certain circumstances. I'm going to do a bunch of tests in a few to see which, where, and when that happens. I'll keep this thred posted.

    *Edit*

    Okay, I just went through a series of preliminaries, and I notice that rNT is behaving much better than the last time I tested it (before, it didn't seem to work from Anchor tags' 'onclick' event, only button inputs -- now it works for both). The difference is, the surface or view names have changed a bit. They are:

    var views = gadgets.views.getSupportedViews();
    var homeView = views['home'];
    var rightProfileView = views['profile.right'];
    var leftProfileView = views['profile.left'];
    var canvasView = views['canvas'];

    You can jump from canvas to canvas, to refresh the page with new parameters, and I'm able to get from Canvas to both Profiles. If you move from Canvas or Profile to Home, the VIEWER must have the App installed, because it takes them to their own Home page -- this makes the Home rNT rather limited, but useful if you're only using the Canvas for OWNER == VIEWER situations, such as an extended settings page.

    I should note that I always did these tests with something in the opt_params; usually an empty object. The MySpace implementation seems to be sensitive to missing parameters, even if they are considered optional. I'll keep trying different things, but it would be helpful if you posted a code snippet if you're still having problems.


     

  • 03-28-2008 3:07 AM In reply to

    Re: requestNavigateTo broken?

    what does this line mean?

    var max_data_len = 4095 - remote_relay_url.length; (ifpc001.js line 176)

    I'm getting this error: remote_relay_url is undefined

    I followed your example and I'm still confused on how to navigate from canvas to profile. Navigating from profile and home to canvas is working for me, my only problem is to navigate from canvas to profile.

    Here's my code:

        var params = {};
        params['code'] = "123456";              
        var views = gadgets.views.getSupportedViews();
        var leftProfileView = views['profile.left'];
        gadgets.views.requestNavigateTo(leftProfileView, params);

  • 03-28-2008 6:12 AM In reply to

    Re: requestNavigateTo broken?

    That line is part of the validation done before sending the request out to the Relay that actually confirms whether or not your App has permission to move to the new view. It shouldn't ever come back undefined, though -- the remote_relay_url is actually one of the parameters passed into the application surface, assuming you're using a JS/HTML type view on the Canvas.

    Wait - are you using a JS/HTML type canvas, or are you using an external iframe and trying to import the OpenSocial library externally?

    Because, honestly, I can't think of another reason why you'd get both those errors with this much consistency (I assume this is related to the error you were getting when you first posted).

  • 03-28-2008 7:02 PM In reply to

    Re: requestNavigateTo broken?

    That explains why I'm getting this error. I'm using an external iframe because my app involves a lot of server side, and just trying to import the OS lib. What other js should I include or how do I make my navigation work from differenct surfaces or is this not possible when using an external iframe?

  • 03-28-2008 8:54 PM In reply to

    Re: requestNavigateTo broken?

    This works for me and seems to be cross-platform with Hi5 and Orkut.

    function navigateToView(whichview) {
     var views = gadgets.views.getSupportedViews();
     for (var viewname in views) {
      var v = new String(viewname);
      if (v.indexOf(whichview) > -1) {  
       var view = views[viewname]; 
       gadgets.views.requestNavigateTo(view);
       break;
      }
     }
    }

  • 03-30-2008 2:53 AM In reply to

    Re: requestNavigateTo broken?

    That's not going to work in this case - she's using requestNavigateTo() off-site, so it doesn't have all the included code.

    To Sheila - well, your best option is to start by adding all the javascript that shows up in the header of an App page. Because they run in iframes anyway, getting the source is pretty simple. In IE7, for example, just right-click anywhere inside the actual AppApp's surface, and 'View Source'. There will be a list of params that get registered. To be frankly honest though, that's probably not going to be enough; I'll have dig deeper into the gadget code of the library to see.

Page 1 of 2 (18 items) 1 2 Next >