Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » browser widget
browser widget [message #66598] Fri, 14 December 2007 21:38 Go to next message
Benoit Mercier (mercibe) is currently offline Benoit Mercier (mercibe)Friend
Messages: 11
Registered: July 2009
Junior Member
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 19:02 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:ExternalBrowser "file:///" url problem
Next Topic:Child menu action gets fired when its parent menu is clicked
Goto Forum:
  


Current Time: Fri Apr 26 07:53:50 GMT 2024

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

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

Back to the top