Hi Sven,
Ich habe eine neue Erkenntnis !!!!!
im Web geht es nicht
http://www.klapperkiste.de/test.htm
aber wenn ich die test.htm lokal laufen lasse gehts.
Also hier nochmal der vollständige Code:
<html>
<head>
<title>???</title>
<script language="JavaScript">
<!--
var nnm=navigator.appName;
function preview()
{
var tmp;
var ws="width=500,height=400,screenX=0,screenY=0,resizable=yes,scrollbars=yes,locationbar=no,menubar=no,status=no,hotkeys=no";
if(nnm == "Netscape")
{
//---- net -------------------------
//---- DAS NICHT !!!!!! -------------
tmp=document.test.bild.value;
var tmp2="";
tmp2=tmp.replace(/\/g,"/");
netpath="file:///" + tmp2.replace(/:/,"|");
alert('Das ist der Pfad inkl. des Dateinamens nach aufbereitung: \n\n' + netpath);
testpic= window.open(netpath,"testpic",ws);
alert('Und ?');
}
else
{
//---- for IE opera... ----------------
//---- DAS FUNKTIONIERT --------------
tmp=document.test.bild.value;
if(tmp.length>4) {
testpic = open(tmp,"testpic",ws);
document.test.bild.value="";
}
//-------------------------------------
}
}
//-->
</script>
</head>
<body>
<p> </p>
<form name="test">
<input type=file name="bild" style="height:22px;" accept="image/*">
<input type=button name="prev" onClick="preview();" value="Vorschau" style="height:22px;">
</form>
</body>
</html>