Friday, June 28, 2013

Attach element to separate doc (IE)

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.
 
 

No comments:

Post a Comment