Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8978213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:33:22+00:00 2026-06-15T19:33:22+00:00

I have a GWT web app. When I use element.setAttribute(style, myAttributeList); it perfectly works

  • 0

I have a GWT web app. When I use

 element.setAttribute("style", myAttributeList);

it perfectly works for IE7 (*)

Now comes the tricky part. I embed my web app, served at http://www.myGWTApp.com, in a web page with a different domain using the typical iframe tag:

<iframe src="http://www.myGWTApp.com" height="194" width="600"></iframe>

As a result of this the app works perfectly well except for every element.setAttribute( , ) that I have in my code, which doesn’t work at all.

So, GWT has lost its magic when running from inside an IFRAME…

Do you know any way to solve this? Perhaps using JSNI?

Thanks!

Edit
The embedding page contains the following HTML tag:

<meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible">

so, the app is running in IE7.

(*) I’m aware that the JS setAttribute is broken for IE7 but
apparently GWT does a good job and isolates Java programmers from that
issue (when no iframes are involved)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T19:33:23+00:00Added an answer on June 15, 2026 at 7:33 pm

    Verify that the container page and your app in the iframes are both running in standars mode. Also check that the host page doesn’t have any X-UA-Compatible meta-tag

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a GWT web-app with a nearly full page Google map window. Inside
I'm migrating an existing GWT app running on OSGi (Equinox) and Pax-web to use
I have a web app, whose UI is written in GWT, where for various
What files do I need to have to deploy a GWT web app to
I have a web-app built with GWT, Request Factory and Places/Activities. I'm curious whether
I have a GWT 2.3 web app using Objectdb via Rpc. In the embedded
I'm using gwt in my web app and I have a html panel which
I use Eclipse GWT Plug-in to build a GWT app. Later on, I'll have
I have a GWT web application that I have deployed in App engine, however
We have use GWT Platform with GWTP client and rest web services within GUICE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.