MudGuard: externe .js-Datei: Offline immer okay, Online nur teilweise

Beitrag lesen

Hi,

function ShowSubwin2()
{
    var s_winImgShow = window.open("", "Subwin2", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=1000,height=200");

s_winImgShow.document.open();
    s_winImgShow.document.writeln("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd'>");
    s_winImgShow.document.writeln("<HTML><HEAD><TITLE>SubWindow2</TITLE>");
    s_winImgShow.document.writeln("<META http-equiv='Content-Type' content='text/html;charset=iso-8859-1'>");
    s_winImgShow.document.writeln("<SCRIPT type='text/javascript' src='Test2.js'></SCRIPT>");

Du bindest hier mit einer relativen URL eine Test2.js ein, die im selben Verzeichnis liegen soll wie das HTML-Dokument.
In welchem Verzeichnis aber liegt denn das HTML-Dokument?

Benutze die absolute URL.

cu,
Andreas

--
Der Optimist: Das Glas  ist halbvoll.  - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/? http://www.andreas-waechter.de/ http://www.helpers.de/