Friday, June 28, 2013

Re: Attach element to separate doc (IE)

Hi,

That is because creation of elements is done through Document.get() which always returns the document that was used to load the application.

I don't think there is a solution right now, except for just starting another GWT application in the window. It could be the same one, but with a history token to move it to the right location in the application.

David

On Fri, Jun 28, 2013 at 10:44 AM, Ulas <ulas.albayrak@gmail.com> wrote:
I recently ran into a problem that I just can't seem to solve. The problem is Internet Explorer-specific, none of the other browsers I have tried this in shows the same behavior.

What I'm trying to do is the following:
  1. Create a new window (in JSNI)
  2. Cast the new window's body element to GWT BodyElement
  3. Create a GWT LayoutPanel
  4. Attach the LayoutPanel to the newly created window's BodyElement.
When I do this in IE I get DOM Exception: HIERARCHY_REQUEST_ERR (3). I (think) this problem is due to the fact that IE doesn't allow elements created in one document to be attached to another.

Currently I'm drawing blanks on how solve this problem. Any thoughts or hints is much appreciated.

Thanks!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment