|
|
|
upload file ได้แล้ว แต่เปิดดูไม่ได้ ต่เปิด file ดูไม่ได้ค่ะ มันขึ้น javascript error ตรงส่วนด้านล่าง เวลาจะ link ค่ะ |
|
|
|
|
|
|
|
btn_search.gif.......386 bytes
sdata.doc.......264192 bytes
test1.pdf.......579588 bytes
แต่เปิด file ดูไม่ได้ค่ะ มันขึ้น javascript error ตรงส่วนด้านล่าง เวลาจะ link ค่ะ ขึ้นว่า javascript:openwin("http://localhost/fruit/test/download/sdata.doc")
-----showimage.php------
<script language="JavaScipt">
function openwin(url){
open(url, "a", "toolbar=0, location=0, directiories=0, status=0, menubar=0, scrollbar=yes, resizable=no, width=330, height=285");
}
</script>
</head>
<body>
<table border="1" align="center" cellpadding="10" cellspacing="1">
<tr><td valign="top" bgcolor="#009999">
<?
$dir="C:/AppServ/www/fruit/test/download/";
$url="http://localhost/fruit/test/download/";
print "Now open $url<p>";
$DIR = opendir("$dir");
while ($text = readdir($DIR))
{
if ($text != "." && $text != "..")
{
$size=filesize($dir . "$text");
print "<a href=\"javascript:openwin('$url$text')\"> $text</a>.......<b>$size</b> bytes";
print "<a href=\"javascript:openwin('defile.php?f=$text')\"><img border=0 src=db.gif></a><br>";
}
}
?>
</td>
</tr>
</table>
Tag : - - - -
|
|
|
|
|
|
Date :
17 ก.ย. 2550 11:08:34 |
By :
ข้าวปุ้น |
View :
1940 |
Reply :
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function openwin(url){
open(url, "a", "toolbar=0, location=0, directiories=0, status=0, menubar=0, scrollbar=yes, resizable=no, width=330, height=285");
}
/********* น่าจะเขียนแบบนี้นะครับ *********/
function openwin(url){
window.open(url, "a", "toolbar=0, location=0, directiories=0, status=0, menubar=0, scrollbar=yes, resizable=no, width=330, height=285");
}
|
|
|
|
|
Date :
17 ก.ย. 2550 16:57:54 |
By :
lozomac |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณค่ะ
|
|
|
|
|
Date :
17 ก.ย. 2550 17:16:23 |
By :
ข้าวปุ้น |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|