Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Browser object and getUrl()
Browser object and getUrl() [message #76738] Wed, 05 March 2008 09:53 Go to next message
Eclipse UserFriend
Hi,

I use org.eclipse.swt.browser.Browser.setText(html) method. RAP makes
the generated iframe point to an html file (i.e.
http://127.0.0.1:8085/browsertext-1493615760.html).

How can I get back the URL of this generated html file
(http://host:port/browsertext-[0-9]*.html)?

I understand that getUrl() returns the URL previously set by setUrl().
So getUrl() returns null when setText() has been used instead of setUrl().

Would it be possible to have a method on Browser returning its "real"
URL (the one set in the generated iframe)?

Thank you very much in advance for your support.

Best regards,

Benoit
(mercibe)
Re: Browser object and getUrl() [message #76899 is a reply to message #76738] Thu, 06 March 2008 02:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

as RWT implements a subset of SWT (and this means as far as possible
also a semantical one) we can not change the behavior to the one you
proposed. This is necessary to allow as much as possible single sourcing
between RAP and RCP applications.

Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Benoit Mercier [mailto:benoit.mercier@usherbrooke.ca]
Bereitgestellt: Mittwoch, 5. März 2008 15:54
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Browser object and getUrl()
Betreff: Browser object and getUrl()


Hi,

I use org.eclipse.swt.browser.Browser.setText(html) method. RAP makes
the generated iframe point to an html file (i.e.
http://127.0.0.1:8085/browsertext-1493615760.html).

How can I get back the URL of this generated html file
(http://host:port/browsertext-[0-9]*.html)?

I understand that getUrl() returns the URL previously set by setUrl().
So getUrl() returns null when setText() has been used instead of
setUrl().

Would it be possible to have a method on Browser returning its "real"
URL (the one set in the generated iframe)?

Thank you very much in advance for your support.

Best regards,

Benoit
(mercibe)
Re: Browser object and getUrl() [message #78133 is a reply to message #76899] Wed, 12 March 2008 08:55 Go to previous message
Eclipse UserFriend
Thank you for your reply Frank. Since my goal in trying to get the
generated URL was to make the iframe scroll to a custom anchor contained
in it, I managed to achieve that goal via browser.execute("some
javascript code") method.

Benoit


Frank Appel a écrit :
> Hi,
>
> as RWT implements a subset of SWT (and this means as far as possible
> also a semantical one) we can not change the behavior to the one you
> proposed. This is necessary to allow as much as possible single sourcing
> between RAP and RCP applications.
>
> Ciao
> Frank
>
> -----Ursprüngliche Nachricht-----
> Von: Benoit Mercier [mailto:benoit.mercier@usherbrooke.ca]
> Bereitgestellt: Mittwoch, 5. März 2008 15:54
> Bereitgestellt in: eclipse.technology.rap
> Unterhaltung: Browser object and getUrl()
> Betreff: Browser object and getUrl()
>
>
> Hi,
>
> I use org.eclipse.swt.browser.Browser.setText(html) method. RAP makes
> the generated iframe point to an html file (i.e.
> http://127.0.0.1:8085/browsertext-1493615760.html).
>
> How can I get back the URL of this generated html file
> (http://host:port/browsertext-[0-9]*.html)?
>
> I understand that getUrl() returns the URL previously set by setUrl().
> So getUrl() returns null when setText() has been used instead of
> setUrl().
>
> Would it be possible to have a method on Browser returning its "real"
> URL (the one set in the generated iframe)?
>
> Thank you very much in advance for your support.
>
> Best regards,
>
> Benoit
> (mercibe)
>
Previous Topic:Multicolumn TextEditor?
Next Topic:error with RAP demo from CVS head
Goto Forum:
  


Current Time: Fri Jul 18 05:53:19 EDT 2025

Powered by FUDForum. Page generated in 0.07443 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top