Tag Leute!
Ich will eine Fotogallerie schreiben, in der in einem Frame (thumbs_frame) die Thumbnails sind, im anderen Frame (pic_frame) das Foto dann in voller Größe angezeigt wird. Mit dieser Funktion will ich das Bild in pic_frame ändern:
top.mainframe.pic_frame.show(thispic) ruft eine in pic_frame definierte Funktion show auf, die thispic anzeigt. (die dortige Funktion läuft.)
Das Ganze funktioniert bei mir lokal in Firefox und IE ohne Probleme. Wenn ich das Ganze auf den Webspace lade, bekomme ich jedoch den Fehler "top.mainframe.pic_frame ist Null oder kein Objekt" (IE) bzw. "Error: uncaught exception: Permission denied to get property Window.mainframe" (Firefox).
Wer sich das Ganze mal anschauen will: www.eschaton.at.tf --> The Band --> Pictures --> eine der beiden Gallerien auswählen.
Ich bin dankbar für jede Hilfe
grüße
Philippe
Ich will eine Fotogallerie schreiben, in der in einem Frame (thumbs_frame) die Thumbnails sind, im anderen Frame (pic_frame) das Foto dann in voller Größe angezeigt wird. Mit dieser Funktion will ich das Bild in pic_frame ändern:
Code:
function show(thispic){
top.mainframe.pic_frame.show(thispic);
top.mainframe.pic_frame.now = thispic;
}
top.mainframe.pic_frame.show(thispic) ruft eine in pic_frame definierte Funktion show auf, die thispic anzeigt. (die dortige Funktion läuft.)
Das Ganze funktioniert bei mir lokal in Firefox und IE ohne Probleme. Wenn ich das Ganze auf den Webspace lade, bekomme ich jedoch den Fehler "top.mainframe.pic_frame ist Null oder kein Objekt" (IE) bzw. "Error: uncaught exception: Permission denied to get property Window.mainframe" (Firefox).
Wer sich das Ganze mal anschauen will: www.eschaton.at.tf --> The Band --> Pictures --> eine der beiden Gallerien auswählen.
Ich bin dankbar für jede Hilfe
grüße
Philippe