Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Pop Up Window or Download Link(Provide a download by a link or pop up winodw.)
Pop Up Window or Download Link [message #551647] Sun, 08 August 2010 21:33 Go to next message
Hans Missing name is currently offline Hans Missing nameFriend
Messages: 14
Registered: August 2010
Junior Member
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.
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.

Can anyone help me? It was nice if someone could tell me the solution to both problems Smile There will be a day when I could make use of both techniques.



Best regards
Mustafa
Re: Pop Up Window or Download Link [message #551679 is a reply to message #551647] Mon, 09 August 2010 07:02 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
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

> 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

>
> Can anyone help me? It was nice if someone could tell me the solution to
> both problems :) There will be a day when I could make use of both
> techniques.
>
>
>
> Best regards
> Mustafa

HTH
Rüdiger
Re: Pop Up Window or Download Link [message #551724 is a reply to message #551679] Mon, 09 August 2010 10:56 Go to previous messageGo to next message
Hans Missing name is currently offline Hans Missing nameFriend
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 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
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
Re: Pop Up Window or Download Link [message #551749 is a reply to message #551742] Mon, 09 August 2010 12:49 Go to previous message
Hans Missing name is currently offline Hans Missing nameFriend
Messages: 14
Registered: August 2010
Junior Member
Thanks a lot!
Previous Topic:Problem with jFace and i18n
Next Topic:WAR Deployment problem
Goto Forum:
  


Current Time: Sun Feb 25 03:36:21 GMT 2024

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

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

Back to the top