browser widget [message #66598] |
Fri, 14 December 2007 16:38  |
Eclipse User |
|
|
|
Hi,
We have a browser widget in which we set our own HTML content via
browser.setText()
This HTML contains links which, once clicked, should trigger action (open
a new editor) within the application.
How do we go about it?
1) catch onBlur event in our own HTML via custom javascript and try to
force the opening of a new editor by calling RAP javascript objects?
2) write the href anchor in a certain way to generate a valid get/post
request to the rap servlet?
3) via an unknow widget method???
Thank you very much for any pointer.
Best regards,
Benoit
|
|
|
Re: browser widget [message #66705 is a reply to message #66598] |
Sun, 16 December 2007 14:02  |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Benoit,
see my comments below.
HTH
Rüdiger
Benoit Mercier wrote:
> Hi,
>
> We have a browser widget in which we set our own HTML content via
> browser.setText()
>
> This HTML contains links which, once clicked, should trigger action
> (open a new editor) within the application.
>
> How do we go about it?
>
> 1) catch onBlur event in our own HTML via custom javascript and try to
> force the opening of a new editor by calling RAP javascript objects?
The client-side representation of a browser widget is an IFRAME element.
As far as I know, JavaScript executed from there has no access to the
'outside'.
> 2) write the href anchor in a certain way to generate a valid get/post
> request to the rap servlet?
That's the way I would try. Register a custom IServiceHandler and let
the href attribute point there.
See the JavaDoc for org.eclipse.rwt.service.IServiceHandleron on how to
use it.
> 3) via an unknow widget method???
Not quite sure what you mean. I don't know of any widget method that
would help in this case.
>
> Thank you very much for any pointer.
>
> Best regards,
>
> Benoit
>
|
|
|
Powered by
FUDForum. Page generated in 0.03301 seconds