|
 |
|
ถามเกี่ยวกับ การ Refresh ของ Ajax ทีครับ คือว่า Ajax นิสามารถ Refresh เฉพาะในส่วน Div ได้หรือเปล่าครับ แนะนำด้วยครับ |
|
 |
|
|
 |
 |
|
ให้ใช้ Ajax เรียกหรือทำการ interHTML ใหม่อีกครั้งน่ะครับ
|
 |
 |
 |
 |
Date :
2009-11-22 14:18:33 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แล้วตกลงสามารถ Refresh ได้หรือเปล่าครับ นอกจาก แทรกข้อความแทนที่ 
|
 |
 |
 |
 |
Date :
2009-11-22 15:08:07 |
By :
pollok |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้ครับใช้ jquery น่ะครับ
<script type="text/javascript" src="jquery.js"></script>
<div id="test"></div>
<button onclick="$('#test').load('other-page.php');">refresh</button>
ทุกๆ ครั้งที่กดปุ่ม refresh จะโหลดหน้า other-page.php มาไว้ใน <div id="test"></div> ครับ
|
 |
 |
 |
 |
Date :
2009-11-22 15:24:04 |
By :
num |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
jquery ช่วยให้ ajax ง่ายขึ้นมากมายก่ายกอง
|
 |
 |
 |
 |
Date :
2009-11-22 17:24:37 |
By :
mr.v |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ต้องใช้ jquery เท่านั้นเหรอครับ ตอนนี้มันเต็มเว็บไปหมดบางที script ก็ชนกันไปหมด = ="
เพราะผมใช้ jquery image , jquery check register , jquery time , jquery อื่นๆ
|
 |
 |
 |
 |
Date :
2009-11-22 20:15:13 |
By :
pollok |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ใช้ jquery อยู่แล้วก็เพิ่มโค้ดแค่บรรทัดเดียวเท่านั้นเองครับ ไม่ชนเพิ่มขึ้นแน่นอนครับ
|
 |
 |
 |
 |
Date :
2009-11-22 20:53:16 |
By :
num |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|