Hi,
I'm new in JavaScript and really tried to figure it out myself. But as you see..
a website contains an illustrations with several different objects - to each object, i have an explanatory text to be opened in a popup window.
function fenster_auf(link,win_wid,win_hei) {
var info;
info = window.open(link,'info','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,width='+win_wid+',height='+win_hei+',screenX='+0+',screenY='+0):
}
now, the different texts are not of the same length, so i need to resize the popup-window if the user clicks on an other object to see the information. it tried it with adding
info.resize(win_wid,win_hei);
info.focus();
to the above mentioned script. the size wasn't correct in ie and the script didn't work at all in ns (it has to be compatible). so i thought it would be more simple to close to first close the info-window and then open it with the new parameters. so i put
info.close();
before the opening script. that didn't work at all. so, what's the trick - that works in both browsers!
tnx in advance...adrian
I'm new in JavaScript and really tried to figure it out myself. But as you see..
a website contains an illustrations with several different objects - to each object, i have an explanatory text to be opened in a popup window.
function fenster_auf(link,win_wid,win_hei) {
var info;
info = window.open(link,'info','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,width='+win_wid+',height='+win_hei+',screenX='+0+',screenY='+0):
}
now, the different texts are not of the same length, so i need to resize the popup-window if the user clicks on an other object to see the information. it tried it with adding
info.resize(win_wid,win_hei);
info.focus();
to the above mentioned script. the size wasn't correct in ie and the script didn't work at all in ns (it has to be compatible). so i thought it would be more simple to close to first close the info-window and then open it with the new parameters. so i put
info.close();
before the opening script. that didn't work at all. so, what's the trick - that works in both browsers!
tnx in advance...adrian