Browser Widget focus problem [message #917900] |
Thu, 20 September 2012 14:49  |
Eclipse User |
|
|
|
Hello,
I have a simple RAP application that holds two views. The first view owns a treeviewer displaying several topics to the user. The second view owns a Browser widget displaying html file content depending on the selected topic in the first view (via Selection provider mechanism). The problem is when I click on the browser widget, its view is not activated, as if it hadn't the focus. It looks like the browser widget does not respond to mouse events !
How can I force browser widget and its view and have focus ?
thks a lot,
frank
|
|
|
Re: Browser Widget focus problem [message #917916 is a reply to message #917900] |
Thu, 20 September 2012 15:02   |
Eclipse User |
|
|
|
Hi!
For security reasons, browser usually do not propagate events that are
fired within an iframe (the document of the browser widget) to its
parent (the browser widget itself). If the iframe document has the same
domain (e.g. the content was loaded with the browser#setText method) it
is possible to communicate between the two by javascript. In that case
it might be possible to focus the browser widget with a JS hack.
Greetings,
Tim
> Hello,
>
> I have a simple RAP application that holds two views. The first view
> owns a treeviewer displaying several topics to the user. The second view
> owns a Browser widget displaying html file content depending on the
> selected topic in the first view (via Selection provider mechanism). The
> problem is when I click on the browser widget, its view is not
> activated, as if it hadn't the focus. It looks like the browser widget
> does not respond to mouse events !
>
> How can I force browser widget and its view and have focus ?
>
> thks a lot,
> frank
--
Tim Buschtöns
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04424 seconds