S
Stefan Sch?rmeli
I already read about several problems using firefox and the
window.opener property. But obviously it didn't help out. So here is
my problem:
I got a "Search..." link which opens a new window with an FTP-browser.
function popup(url,width,height){
var popupX = (screen.width/2)-(width/2);
var popupY = (screen.height/2)-(height/2);
var pos = "left="+popupX+",top="+popupY;
winpops=window.open(url,"popup","width=" + width + ",height=" +
height + "," + pos + ",scrollbars=yes,toolbar=yes");
}
this code opens my popup. Now, the user browses his FTP and selects
some kind of folder or file. This value is automatically saved into a
readonly input form. To accept the selected path, the user got a form
button, which saves the path to the parent form (window.opener) and
closes the FTP-browser.
function acceptPathAndClose(path,formname,field) {
form_h = eval("opener." + formname + "." + field);
form_h.value = path;
self.close();
}
Firefox spams its JavaScript console with "opener.blabla got no
properties" and just does nothing. Internet Explorer executes this
code as expected. How can i solve this annoying problem?
Greets
Stefan
window.opener property. But obviously it didn't help out. So here is
my problem:
I got a "Search..." link which opens a new window with an FTP-browser.
function popup(url,width,height){
var popupX = (screen.width/2)-(width/2);
var popupY = (screen.height/2)-(height/2);
var pos = "left="+popupX+",top="+popupY;
winpops=window.open(url,"popup","width=" + width + ",height=" +
height + "," + pos + ",scrollbars=yes,toolbar=yes");
}
this code opens my popup. Now, the user browses his FTP and selects
some kind of folder or file. This value is automatically saved into a
readonly input form. To accept the selected path, the user got a form
button, which saves the path to the parent form (window.opener) and
closes the FTP-browser.
function acceptPathAndClose(path,formname,field) {
form_h = eval("opener." + formname + "." + field);
form_h.value = path;
self.close();
}
Firefox spams its JavaScript console with "opener.blabla got no
properties" and just does nothing. Internet Explorer executes this
code as expected. How can i solve this annoying problem?
Greets
Stefan