Hi guys,
First of all: no, frames are not evil in a backend application that should
not be bookmarked or indexed, and is not reliant on browser history :-)
The question:
I made a tabbed invironment, where I can add tabs + corresponding iframes.
On a button-click in one of the iframes, a new iframe + tab are made, and
the form is posted to that frame by target. This works perfectly in Firefox
& Opera, but MSIE stubbornly opens a new window. The iframes have the right
name & id in FF & Opera, but MSIE doesn't seem the grant the option to set
this name, and thus opens a new window.
To break it down to the bare minimum:
In the page itself:
ifr = document.createElement('iframe');
ifr.name = 'test';
ifr.id = 'test';
ifr.src = './test.html';
document.getElementById('tabs').appendChild(ifr);
And in test.html:
alert(window.name);
FF & Opera alert 'test', alert from MSIE is empty. Suspecting a security
issue I checked online as well, and added that site to the trusted sites,
but still no luck... I really wnat to avoid complicated XMLHTTPRequest's
for this.
Any pointers where to look?
--
Rik Wasmus