String site = "yourpage.html";

                                if(!GWT.isProdMode())

                                                site +=
"?gwt.codesvr=127.0.0.1:9997";

 
Window.Location.replace(GWT.getHostPageBaseURL() + site);

From: [email protected]
[mailto:[email protected]] On Behalf Of SVR
Sent: Thursday, April 21, 2011 9:48 AM
To: [email protected]
Subject: Re: Navigation between different html pages

 

you mean your hard-coded url isnt working?

If it cant find the url,  try accessing the page using  :

 

getHostPageBaseURL(), according to GWT:


          Gets the URL prefix of the hosting page, useful for prepending
to relative paths of resources which may be relative to the host page.

 

http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/
core/client/GWT.html

 

On Thu, Apr 21, 2011 at 3:58 AM, Carlos <[email protected]> wrote:

am using Window.open(.....) specifying the url of the new html page
which contains a link to a new module but it's not working.
it can't find the specified url


On Apr 20, 6:18 pm, SVR <[email protected]> wrote:
> On Success of the RPC, you could open a new Window with Window.open.
> depending on what the other part of your application is, for eg., a
struts
> action could be reached like so:
>
> Window.open("../gwt/sample_load.action);
>
>
>

> On Wed, Apr 20, 2011 at 8:51 AM, Carlos <[email protected]> wrote:
> > hello,
>
> > sorry being so annoying :)
>
> > i have another problem concerning navigation from the html host page
> > to another html page.
> > first i created a new module with a new entry point.
> > then i created a new html page and added the script tag which point
to
> > the new module
>
> > what i want is the following:
> > i want after success of an rpc with the server to open a new window
or
> > tab(would be better) which is the html page.
>
> > i don't realy konw how if certain configurations concernig previous
> > modules should be done.
> > So any suggestions would be great and so helpful for me.
>
> > thanks.
>
> > --
> > 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]
<mailto:google-web-toolkit%[email protected]> .
> > For more options, visit this group at

> >http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted
text -
>
> - Show quoted text -

--

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]
<mailto: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.

</PRE><BR><span 
style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#003366'>
_____________________________________________________<BR> 
This electronic message and any files transmitted with it contains<BR>
information from iDirect, which may be privileged, proprietary<BR>
and/or confidential. It is intended solely for the use of the individual<BR>
or entity to whom they are addressed. If you are not the original<BR>
recipient or the person responsible for delivering the email to the<BR> 
intended recipient, be advised that you have received this email<BR>
in error, and that any use, dissemination, forwarding, printing, or<BR> copying 
of this email is strictly prohibited. If you received this email<BR>
in error, please delete it and immediately notify the sender.<BR>
_____________________________________________________ 
</SPAN><PRE>

-- 
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