| Summary: | Browser.execute returns false in RAP but returns true in RCP | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Walter Mising name <kwchess> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ivan | ||||
| Version: | 1.0 | ||||||
| Target Milestone: | 1.1.1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Walter Mising name
Tested with the Controls Demo - BrowserTab. In Firefox 2.0.0.14/Safari JavaScript is executed (Browser.execute) with/without page loaded in the browser. In IE7 it's possible to execute (Browser.execute) JavaScript ONLY if there IS a page loaded in the browser. Created attachment 103508 [details]
complete code
Complete source code is provided.
Run the application
Click => Test => TestCmd
A Dialog box opens
when clicking on the OK button, the javascript is called.
The alert box is not shown.
Some more clarifications: 1. If there is an external URL loaded (http://www.eclipse.org) in the browser, due to security restrictions the script is not executed in ALL browsers (Firefox/Safari/IE). 2. When the text is set, the HTML page with the text is created on the RAP app server. browser.execute is working in FF and Safari. The browser.execute is working on IE if there is a <script></script> tag defined in the text. 3. On initial browser creation there is a empty (<html></html>) page in the browser. The browser.execute is working in FF and Safari. If we change it to (<html><script></script></html>) the browser.execute is working in IE too. Fixed in CVS HEAD |