On Wed, Feb 15, 2012 at 10:56 AM, lkcl luke <[email protected]> wrote:
> On Wed, Feb 15, 2012 at 8:26 AM, Jesse Vander Does > <[email protected]> wrote: > > I have a div element that I would like to redirect to another url on my > > site. When I take that url routing offline I can see the proper url > show up > > in the browser. For example I can go from my.site.com to > > my.site.com/login/google. > > > > However, as soon as I turn that url live instead of going to the url I > get > > sent to this url: > > > > my.site.com/Index.safari.cache.html > > > > Contents: > > This script is part of module Index > > > > I'm am calling Window.setLocation with a relative url so it looks like > this: > > > > Window.setLoaction("login/google") > > > > Thanks for any help you guys can offer. > > jesse, please provide a full worked example *full* source code that > allows people in under 30 seconds to run it and replicate the issue > you're seeing. it is unfair to ask people to spend 5-10 minutes > writing an application which shows what the problem is. > > also have you looked up the standard javascript HTML5 documentation > on how to use window.setLocation? > > l. Sorry, I'm having trouble building an example myself (For some reason setting up a new pyjs project always seems to be the most painful part for me). I now have looked through the html5 api as well as have done more google searching, reading through the pyjamas api and a few more experiments. A few notes for the record. The closest thing to Window.setLocation seems to be window.location or possible window.location.href as location is an object in the javascript api, but seems to be a string in the pyjs api. Also, I now see that I can redirect to an external page, but not an internal uri either with an absolute or relative value. Will report back if I get a good example or a solution. -- Jesse Vander Does 401-226-8251 | [email protected]

