Click to See Complete Forum and Search --> : Problems with document.createElement() ?


jovialjonny
06-16-2003, 03:22 PM
Hey,
I am designing a system where a form is being targetted to an i-frame on another page. I havent been able to get the targetting to work and the returned page keeps loading in a new window.

It has taken me a loong time to figure out that the problem seems to be that I am creating the i-frame dynamically with document.createElement().

If I hard-code the iframe into the page in regular HTML then the form targets correctly to it. When I am creating it in script I am sure it is not a timing issue because the i-frame is definitely loaded when the form is submitted.

My question really is has anyone had problems with document.createElement() or does anyone see why this should be causing me this problem?

Khalid Ali
06-16-2003, 03:32 PM
createElement works fine with all generation 6+ browsers.
Chances are that you are not implementing it correctly.Please post code or link to the page.