Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Show Image in Browser widget
Show Image in Browser widget [message #1196613] Tue, 19 November 2013 09:01 Go to next message
Nin Pa is currently offline Nin Pa
Messages: 7
Registered: September 2013
Junior Member
Hi all,

I am using the SWT browser widget to show a HTML-Page in a view.
Now there are some images which should be shown within the page but they could not be loaded (they are located in the same file as the html-file)

Do I have to register them directly in the surrounding view, to use them?
But I don't have any idea how to do this.

Anyone a solution? Would be great! Smile
Re: Show Image in Browser widget [message #1196695 is a reply to message #1196613] Tue, 19 November 2013 09:45 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1794
Registered: July 2009
Senior Member
Hi,
an example how to register and use images in markup is available here
[1]. The same technique can be used for images inside a page in Browser
widget.

[1]
http://git.eclipse.org/c/rap/org.eclipse.rap.git/tree/examples/org.eclipse.rap.examples.pages/src/org/eclipse/rap/examples/pages/MarkupExample.java
HTH,
Ivan

On 11/19/2013 4:01 PM, Nin Pa wrote:
> Hi all,
>
> I am using the SWT browser widget to show a HTML-Page in a view.
> Now there are some images which should be shown within the page but
> they could not be loaded (they are located in the same file as the
> html-file)
>
> Do I have to register them directly in the surrounding view, to use them?
> But I don't have any idea how to do this.
>
> Anyone a solution? Would be great! :)

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Show Image in Browser widget [message #1202820 is a reply to message #1196695] Fri, 22 November 2013 05:32 Go to previous message
Nin Pa is currently offline Nin Pa
Messages: 7
Registered: September 2013
Junior Member
Exactly, that's it! Thank you very much Smile
Previous Topic:About dialog
Next Topic:RAP rowTemplates changing dynamically
Goto Forum:
  


Current Time: Fri Aug 22 19:34:57 EDT 2014

Powered by FUDForum. Page generated in 0.01735 seconds