Thanks Chris, Hard Coding is what Ive had to end up doing too... quite
irritating though

Incidentally I have cracked the other two problems this evening too, namely
(a) how to set the parent URL from within the iframe and (b) how to get make
sure that after logging into the google account in the frame, that it doesnt
then just load the application in the frame:

(a) This is now achieved by using: Window.open("http://www.google.co.uk";,
"_top",""); wherever there is programatical control over making that call,
which works now that the frame is loading the correct version
(b) This is achieved by adding the following code to my standard HTML file
which is a "frame breakout":
    <script type="text/javascript">
         if (parent.frames.length > 0) {
top.location.replace(document.location); }
    </script>

This now means the the users can login to a google account from within my
application without having to be forced out to a "separate" website (even if
it is all powerful google :D ) and once they have logged in, and google
automatically returns them via the "continue" variable in the URL (continue=
http://www.myappname.com/_ah/login).

Chris, do you know if there is anyway I can set a similar "continue" type
process for what happens when users click on the email link after CREATING a
google account? At the moment they are just taken to a "thank you for
confirming your account" screen, which is all very well, but we would much
prefer for the user to be able to then click through to our application

Cheers,
John

On 17 February 2010 20:51, Chris Ramsdale <[email protected]> wrote:

> This thread might help out:
>
>
> https://groups.google.com/group/google-web-toolkit/browse_thread/thread/e0b7683069497bcf/e6d2814e79bc3a45?#e6d2814e79bc3a45
>
> -- Chris
>
> On Sun, Feb 14, 2010 at 6:39 PM, John V Denley <[email protected]
> > wrote:
>
>> I forgot the line from where I am getting the URL:
>>
>> loginInfo.getLoginUrl()
>>
>>
>> On Feb 14, 11:16 pm, John V Denley <[email protected]> wrote:
>> > OK, I think I might have figured out what the problem is... when Im
>> > creating the frame Im trying to set it using the following line:
>> >
>> > The resulting URL is "/_ah/login?continue=http%3A%2F%2Flocalhost
>> > %3A8888%2F" so the problem is that it is stripping out the "/
>> > myappname.html?gwt.codesvr=127.0.0.1:9997" part which then results in
>> > me running the last version of the application that I deployed to the
>> > web.
>> >
>> > Does anyone know why the version at "localhost:8888" is not the same
>> > version that exists at "localhost:888/IDeBanet.html?
>> > gwt.codesvr=127.0.0.1:9997" or how I can force it to be the same
>> > without having to deploy each time?
>> >
>> > Oh and Im running eclipse ganymede by the way.
>> >
>> > Thanks,
>> > John
>> >
>> > On Feb 14, 4:06 pm, John V Denley <[email protected]> wrote:
>> >
>> > > My application requires a login to a google account.
>> >
>> > > I have been looking at trying to do this login step within a GWT frame
>> > > which works fine.
>> >
>> > > The problem is that once that login has been completed my application
>> > > then loads INSIDE the frame, I really want it to reload in the parent
>> > > window. I have tried both the following:
>> >
>> > > Window.Location.reload();
>> > > Window.open("http://www.google.co.uk";, "_top","");
>> >
>> > > but neither of them have the desired effect, If I press F5 it does
>> > > exactlywhat I want it to do, even if the focus is on a text box within
>> > > the frame.
>> >
>> > > Anyone got any ideas, am I doing something wrong, is there a better
>> > > way to do this?
>> >
>> > > Thanks,
>> > > John
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<google-web-toolkit%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/google-web-toolkit?hl=en.

Reply via email to