469,277 Members | 2,181 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,277 developers. It's quick & easy.

cross frame createElement

Hi,

I`m using a javascript lib that dynamically creates widgets. The only markup you need is a container div you pass to the lib and it builds for example a toolbar inside.

I have a parent window with few popups. I want to keep the child windows free of javascript and contain only markup and to let the parent window control all the logic and respond to events in the child windows. In FF I have no problem. In IE7 all is going well except that I can`t dynamically create elements in the child window when using script from the parent window. I can access the child window`s DOM but can`t create new elements. That prevents me from using the javascript lib. All my pages are served from the same server and same domain so there are no cross domain issues.

Is it a known restriction of IE7?

Is there something I can do to bypass this restriction?

Thanks
Sep 11 '07 #1
4 1420
dmjpro
2,476 2GB
Hi,

I`m using a javascript lib that dynamically creates widgets. The only markup you need is a container div you pass to the lib and it builds for example a toolbar inside.

I have a parent window with few popups. I want to keep the child windows free of javascript and contain only markup and to let the parent window control all the logic and respond to events in the child windows. In FF I have no problem. In IE7 all is going well except that I can`t dynamically create elements in the child window when using script from the parent window. I can access the child window`s DOM but can`t create new elements. That prevents me from using the javascript lib. All my pages are served from the same server and same domain so there are no cross domain issues.

Is it a known restriction of IE7?

Is there something I can do to bypass this restriction?

Thanks
If you do Post your particular Codes with Code Tags.
Then it will be easier to figure out your problem.

Kind regards,
Dmjpro.
Sep 11 '07 #2
pbmods
5,821 Expert 4TB
Heya, DoLittle.

What happens when you attempt to create a new element in the child window? Does IE generate an error, or does it just not do anything?

Are you able to create an element in the parent window?
Sep 11 '07 #3
Hi

It just doesn`t do anything.
I can create elements in the parent window.
Right now it`s part of a big application. I`ll try a simple example and post it here.

Thanks
Sep 11 '07 #4
pbmods
5,821 Expert 4TB
Heya, Dolittle.

Right now it`s part of a big application. I`ll try a simple example and post it here.
Good idea.
Sep 11 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Charles Crume | last post: by
2 posts views Thread by RWD | last post: by
3 posts views Thread by Vongza | last post: by
2 posts views Thread by rbanerji | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.