Skip to main content



      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 01:51 Go to next message
Eclipse UserFriend
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 09:53 Go to previous messageGo to next message
Eclipse UserFriend
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 04:46 Go to previous messageGo to next message
Eclipse UserFriend
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 11:04 Go to previous message
Eclipse UserFriend
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: Sun Jul 13 08:48:16 EDT 2025

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

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

Back to the top