|
 |
|
แสดงข้อความเตือน การ update ข้อมูลโดยมีเงื่อนไข |
|
 |
|
|
 |
 |
|
ต้องใช้ ajax หรือ ไปเ็ช็คก่อน save อะครับ
|
 |
 |
 |
 |
Date :
2009-10-17 14:02:14 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มีตัวอย่าง code ไหมค่ะคือไม่รู้จะเขียนยังไง
|
 |
 |
 |
 |
Date :
2009-10-17 14:13:19 |
By :
aung |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
วิธีง่ายๆ นะครับ เวลา list record ออกมา เช่น
aa bb cc แก้ไข
aa bb dd (ตรงนี้ไม่ต้องแสดงลิงค์แก้ไข ใช้ if เช็คเอา ถ้าสถานะเป็นไม่ว่าง)
aa cc bb แก้ไข
ลองดูก่อนนะ
|
 |
 |
 |
 |
Date :
2009-10-17 14:16:25 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แล้ว ถ้าเกิด ตรวจสอบ ใน java scripมีวิธีไหมค่ะ
|
 |
 |
 |
 |
Date :
2009-10-17 14:32:45 |
By :
aung |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มีครับ เวลา query ข้อมูลออกมาแก้ในฟอร์ม ให้ echo status ของรายการนั้น เ็ก็บไว้ใน hidden แล้วใช้ javascript get value ของ hidden ตัวนั้น มาเช็คในฟังก์ชั่น ตอน submit form ถ้ามันไม่ว่างก็ alert ข้อความฟ้อง แล้ว return false มัีนก็จะ submit form ไม่ได้
|
 |
 |
 |
 |
Date :
2009-10-17 14:37:20 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
งง ขอเป็น code เลยได้ไหมค่ะ คือ พึ่งหัดเขียนนะค่ะ
|
 |
 |
 |
 |
Date :
2009-10-17 14:44:30 |
By :
aung |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากๆๆๆๆๆๆๆๆๆๆ ค่ะ
|
 |
 |
 |
 |
Date :
2009-10-17 20:29:04 |
By :
aung |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|