var pForm = window.opener.document.forms[ 0 ];
function acceptResearcher() {
var fullName = document.forms[ 0 ].$researcherFullName.value;
pForm._researcherListBox.options[pForm._researcherListBox.options.length] = new Option(fullName,fullName);
window.close();
}
var pForm = window.opener.document.forms[ 0 ];
function acceptResearcher() {
try{
var fullName = document.forms[ 0 ].$researcherFullName.value;
pForm._researcherListBox.options[pForm._researcherListBox.options.length] = new Option(fullName,fullName);
window.close();
}
catch(e)
{
alert(e.description);
}
}
Hallo,Nein, es waren immer nur relative Links. Der Browser sollte da aber http und den Schnickschnack selbst einsetzen.
Das sieht eher nach einem Rechteproblem aus. Ist der URL für das neue Fenster komplett mit Protokollangabe und allem SchnickSchnack?
Thomas
Errorhandling funktioniert auch in JS:
Versuch doch mal folgendesCodeevtl. hilft dir das weitervar pForm = window.opener.document.forms[ 0 ]; function acceptResearcher() { try{ var fullName = document.forms[ 0 ].$researcherFullName.value; pForm._researcherListBox.options[pForm._researcherListBox.options.length] = new Option(fullName,fullName); window.close(); } catch(e) { alert(e.description); } }
Kann es evtl. an einer Sicherheitseinstellung des Browsers liegen?Sollte nicht so sein. Ich hatte den Server mal als Vertrauenswürdige Seite eingetragen. Hat trotzdem nicht geklappt. :-\
Thomas
function addAuthor(value) {
var f = document.forms["_wAuthorlistDialog"];
var s = f._researcherListBox;
s.options[s.options.length] = new Option (value,value);
}
window.opener.addAuthor(fullName);