Hoi!
Kann mir vieleicht einer die genaue funktionsweise der in selfhtml beschriebenen Variante zum ändern von zwei frames gleichzeitig erklärn! hier nochma kurz die codes:function ZweiFrames(URI1,F1,URI2,F2) {
Frame1=eval("parent."+F1);
Frame2=eval("parent."+F2);
Frame1.location.href = URI1;
Frame2.location.href = URI2;
}
Nicht diese Variante, sie ist Fehleranfällig und langsam und führt in Netscape vermehrt zu abstürzen.
eval ist evil!
Nimm diese, sie macht das gleiche ohne eval:
function ZweiFrames(URI1,F1,URI2,F2)
{
parent[F1].location.href = URI1;
parent[F2].location.href = URI2;
}
Zu deinem Problem
lass dir in der funktion mal alle Daten ausgeben:
function ZweiFrames(URI1,F1,URI2,F2) {
alert(F1);
alert(parent[F1]);
parent[F1].location.href = URI1;
parent[F2].location.href = URI2;
}
Dann erkennst du wo der Wurm sitzt.
Struppi.