Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » parent.qx.ui is null error in IE
parent.qx.ui is null error in IE [message #121965] Thu, 19 February 2009 06:51 Go to next message
Boris Stepanov is currently offline Boris StepanovFriend
Messages: 68
Registered: July 2009
Member
Hi

I tried to use application in iframe (I've just created html file where
url is linked to RAP application) and found the following problem. When
I opened editor with browser widget and sent to browser refresh script
using execute method (I have button on toolbar for this operation) I
recieved java script error (parent.qx.ui is null) in IE.
Re: parent.qx.ui is null error in IE [message #122135 is a reply to message #121965] Fri, 20 February 2009 14:53 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Boris,

your description is very vague. What Javascript are you sending to
the browser?

Cheers,
Rüdiger

Boris Stepanov wrote:
> Hi
>
> I tried to use application in iframe (I've just created html file where
> url is linked to RAP application) and found the following problem. When
> I opened editor with browser widget and sent to browser refresh script
> using execute method (I have button on toolbar for this operation) I
> recieved java script error (parent.qx.ui is null) in IE.
Re: parent.qx.ui is null error in IE [message #123105 is a reply to message #122135] Thu, 26 February 2009 09:46 Go to previous messageGo to next message
Boris Stepanov is currently offline Boris StepanovFriend
Messages: 68
Registered: July 2009
Member
Hi, Rüdiger!

I've checked code again and found the following code which updates browser:

String strUrl = browser.getUrl();
browser.dispose();
browser = new Browser(parentComposite, SWT.NONE);
parentComposite.layout();
browser.setUrl(strUrl);

This is because I haven't found solution to execute script like
document.location = document.location. Browser.execute doesn't work in
this case.

So I have editor with composite, browser widget inside composite and
button on the toolbar which has to refresh browser. The button invokes
code described above.

Rüdiger Herrmann wrote:
> Boris,
>
> your description is very vague. What Javascript are you sending to the
> browser?
>
> Cheers,
> Rüdiger
>
> Boris Stepanov wrote:
>> Hi
>>
>> I tried to use application in iframe (I've just created html file
>> where url is linked to RAP application) and found the following
>> problem. When I opened editor with browser widget and sent to browser
>> refresh script using execute method (I have button on toolbar for this
>> operation) I recieved java script error (parent.qx.ui is null) in IE.
Re: parent.qx.ui is null error in IE [message #123238 is a reply to message #123105] Thu, 26 February 2009 16:04 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Boris,

I assume that the fact that your application runs in an IFRAME
causes the error. The code that you posted works when running
without an IFRAME.
Sorry to be not much of a help here, I have no experience with
running RAP in an IFRAME.
If you are able to construct something similar with standalone
qooxdoo, maybe they know how to solve this?

Cheers,
Rüdiger

Boris Stepanov wrote:
> Hi, Rüdiger!
>
> I've checked code again and found the following code which updates browser:
>
> String strUrl = browser.getUrl();
> browser.dispose();
> browser = new Browser(parentComposite, SWT.NONE);
> parentComposite.layout();
> browser.setUrl(strUrl);
>
> This is because I haven't found solution to execute script like
> document.location = document.location. Browser.execute doesn't work in
> this case.
>
> So I have editor with composite, browser widget inside composite and
> button on the toolbar which has to refresh browser. The button invokes
> code described above.
>
> Rüdiger Herrmann wrote:
>> Boris,
>>
>> your description is very vague. What Javascript are you sending to the
>> browser?
>>
>> Cheers,
>> Rüdiger
>>
>> Boris Stepanov wrote:
>>> Hi
>>>
>>> I tried to use application in iframe (I've just created html file
>>> where url is linked to RAP application) and found the following
>>> problem. When I opened editor with browser widget and sent to browser
>>> refresh script using execute method (I have button on toolbar for
>>> this operation) I recieved java script error (parent.qx.ui is null)
>>> in IE.
Previous Topic:Migrate RAP theme from property to css
Next Topic:disabled/read-only Text theming
Goto Forum:
  


Current Time: Thu Apr 18 23:06:58 GMT 2024

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

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

Back to the top