|
|
Re: Pop Up Window or Download Link [message #551724 is a reply to message #551679] |
Mon, 09 August 2010 10:56   |
Hans Missing name Messages: 14 Registered: August 2010 |
Junior Member |
|
|
Rüdiger Herrmann wrote on Mon, 09 August 2010 03:02 | On 08.08.2010 23:34, mustafa.caylak@web.de wrote:
> Hi,
>
> Following situation: I have a table with some entries. On a double click
> on some of these entries there should pop up a new window which locates
> to a ressource file on the server, a download would be started.
Please see the JavaDoc on org.eclipse.rwt.widgets.ExternalBrowser
|
OK!
Rüdiger Herrmann wrote on Mon, 09 August 2010 03:02 |
> I don't know how to pop up a new window, so I thought I could modify the
> task a bit. My idea was to provide a download link in the table item.
> Therefore I would have to render HTML, but again I don't know how to do
> this.
There is an FAQ entry that should help you to get started:
http://wiki.eclipse.org/RAP/FAQ#How_to_provide_download_link .3F
|
Yes, I saw that. They added a listener to check the URL. After that they provided a link with browser.setText() . My Problem ist that I have to set a html link in a table item not somewhere on the site. How can I do that with this method?
Thanks for your reply!
Best regards
Mustafa
[Updated on: Mon, 09 August 2010 11:00] Report message to a moderator
|
|
|
Re: Pop Up Window or Download Link [message #551742 is a reply to message #551724] |
Mon, 09 August 2010 12:20   |
Rüdiger Herrmann Messages: 581 Registered: July 2009 |
Senior Member |
|
|
On 09.08.2010 12:56, mustafa.caylak@web.de wrote:
> Rüdiger Herrmann wrote on Mon, 09 August 2010 03:02
>> On 08.08.2010 23:34, mustafa.caylak@web.de wrote:
>> > Hi,
>> >
>> > Following situation: I have a table with some entries. On a double
>> click
>> > on some of these entries there should pop up a new window which locates
>> > to a ressource file on the server, a download would be started.
>> Please see the JavaDoc on org.eclipse.rwt.widgets.ExternalBrowser
>
> OK!
>
> Rüdiger Herrmann wrote on Mon, 09 August 2010 03:02
>> > I don't know how to pop up a new window, so I thought I could modify
>> the
>> > task a bit. My idea was to provide a download link in the table item.
>> > Therefore I would have to render HTML, but again I don't know how to do
>> > this.
>> There is an FAQ entry that should help you to get started:
>> http://wiki.eclipse.org/RAP/FAQ#How_to_provide_download_link .3F
>
>
> Yes, I saw that. They added a listener to check the URL. After that they
> provided a link with browser.setText() . My Problem ist that I have to
> set a html link in a table item not somewhere on the site. With
> browser.setText you change the complete HTML site, don't you?
Why don't you try it yourself;) Technically, the browser widget is
represented by an IFRAME element. Thus, Browser#setText() replaces the
content of the browser widget but not the page in which the RAP
application is running.
Placing widgets in a table is not supported, thus you would need to
resort to your first approach or find another place to put the link
(e.g. master/detail layout).
>
>
>
> Best regards
> Mustafa
--
Rüdiger Herrmann
http://eclipsesource.com
|
|
|
|
Powered by
FUDForum. Page generated in 0.02883 seconds