|
 |
|
สอบถามเกี่ยวกับ JavaScript คับ..คือ ผมต้องการใช้คำสั่ง OnChange แล้วถ้าเกิดการเปลี่ยนแปลงให้ Link ไปอีกหน้า หนึ่ง |
|
 |
|
|
 |
 |
|
function gogo(uri)
{
document.location = uri;
}
|
 |
 |
 |
 |
Date :
2009-11-29 19:30:17 |
By :
pjgunner |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คือ ยังไม่ได้เลย คับ
ไม่รู้ใช้ถูกป่าว คับ
ประมาณ
<script language="javascript">
function gogo()
{
document.location = index.php;
}
</script>
<select name="mode" onchange="javascript:gogo()";>
|
 |
 |
 |
 |
Date :
2009-11-29 19:54:32 |
By :
hero_big |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ๋ออ ได้แล้ว คับ
อยากถามอีกหน่อย คับ ถ้าจะส่งค่า mode ไปด้วยได้ไหม คับ
|
 |
 |
 |
 |
Date :
2009-11-29 19:57:48 |
By :
hero_big |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้า ผมจะส่งค่า mode เท่ากับ ค่าที่ผมเลือกใน Dropdownlist ต้องทำอย่างไง คับ
โดย Code ผมประมาณ
<script language="javascript">
function gogo()
{
document.location = "index.php?$mode='$mode'";
}
</script>
<select name="mode" onchange="javascript:gogo()";>
<?
echo "<option value=null $select>เลือกประเภทรูป </option>";
include "conn.php";
$result=mysql_query('SELECT * FROM mode ');
while($rs=mysql_fetch_array($result)){
if($mode_now==$rs[id_m]){$select="selected";}else{$select="";}
echo "<option value=$rs[id_m] $select>$rs[name_mode] </option>";
}
ช่วยอีกหน่อย คับบบ ขอบคุณคับบบบ
|
 |
 |
 |
 |
Date :
2009-11-29 20:04:31 |
By :
hero_big |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้แล้ว คับบ ขอบคุณมากๆๆ คับ
คือ อยากให้ช่วยดูที่กระทู้นี้อีกได้ไหม คับบบ
ขอบคุณคับบบบบบบบ
|
 |
 |
 |
 |
Date :
2009-11-29 20:53:46 |
By :
hero_big |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|