Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » browser.setText() with relative links
browser.setText() with relative links [message #453536] Thu, 07 April 2005 13:43 Go to next message
Eclipse UserFriend
Originally posted by: kent.generatescape.com

Is there anyway to pass the browser html with setText() and then configure
the browser to resolve the relative links from location x?
Re: browser.setText() with relative links [message #453595 is a reply to message #453536] Thu, 07 April 2005 21:45 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
kent wrote:

>Is there anyway to pass the browser html with setText() and then configure
>the browser to resolve the relative links from location x?
>
>
>
>
Use the <base> Tag with the URL of the website. Relative links will be
resolved
versus that site.

Ben
Re: browser.setText() with relative links [message #453745 is a reply to message #453595] Fri, 08 April 2005 13:38 Go to previous messageGo to next message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
And an example of that can be found under the SWT Snippets Browser "render
HTML that includes relative links from memory"
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet137.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

SWT Snippets:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html#snippets

Chris
Re: browser.setText() with relative links [message #453756 is a reply to message #453745] Fri, 08 April 2005 17:27 Go to previous message
Eclipse UserFriend
Originally posted by: kent.generatescape.com

cool thanks.
"Christophe Cornu" <christophe_cornu@ca.ibm.com> wrote in message
news:d361o7$rhj$1@news.eclipse.org...
> And an example of that can be found under the SWT Snippets Browser "render
> HTML that includes relative links from memory"
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet137.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>
> SWT Snippets:
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html#snippets
>
> Chris
>
Previous Topic:Problem adding a drop down ToolItem in a ToolBarManager
Next Topic:saving the font state of a tree item
Goto Forum:
  


Current Time: Fri Apr 19 02:11:18 GMT 2024

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

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

Back to the top