AJAX
หน้าที่
1 2
-
การทำ search suggest เหมือน google (11,907)
AutoCompleter TutorialAs always links to a demo and ZIP at the bottom Enjoy I thought i would write this tutorial because most of the auto completer applications i have seen just dump the code into a zip and tell you how to use it rather than how and why it works knowing about this enables you to -
การทำ List Menu ด้วย Ajax (15,344)
1 สร้างฐานข้อมูลCREATE DATABASE `listmenu` 2 สร้างตารางเก็บข้อมูล nbsp CREATE TABLE `tb catalog` `cat id` int 11 NOT NULL AUTO INCREMENT `cat name` tinytext NOT NULL PRIMARY KEY `cat id` ENGINE MYISAM DEFAULT CHARSET tis620 AUTO INCREMENT 7 MySQL คืนผลลัพธ์ว่างเปล่ากลับมา null -
สร้าง ปฏิทิน ด้วย XHTML และ CSS (30,895)
หา่ยไปนานกับบทความเกี่ยวกับ ajax คราวนี้ผมขอนำเทคนิคมาประยุกต์ใช้ให้ดูครับว่ากันด้วยเรื่องปฏิทินบน Website ดีกว่า ผมเห็นหลายๆ Web โดยเฉพาะพวก Blog จะนำมาประยุกต์ใช้เพื่อนำเสนอเนื้อหาคราวนี้ผมขอสอนแบบ Step ทีละขั้นให้ดู เริ่มกันเลยครับขึ้นด้วย xhtml css พอกันทีกับการแสดงผลตารางด้วย html tableคงเลี่ -
ฟังก์ชัน สร้าง ajax object ไว้ใช้งานอย่างง่าย (14,500)
ใช้สำหรับสร้าง ajax object ไว้สำหร้บใช้งาน ถ้า browser รองรับการใช้งานแบบ ajax ก็จะคืนค่าเป็น objectฟังก์ชัน สร้าง ajax object lt script language "javascript" gt function createAjax nbsp { nbsp nbsp nbsp var request false nbsp nbsp nbsp nbsp nbsp try { nbsp nbsp nbsp nbsp nbsp -
ดึงข้อมูลจาก text ไฟล์มาแสดงด้วย ajax (14,994)
ajax อย่างง่ายในการดึงข้อมูลจาก text ไฟล์มาแสดง lt script language "javascript" src "ajax ja" gt lt script gt lt script language "javascript" gt function doajax { var ajax1 createAjax nbsp ajax1 onreadystatechange function { if ajax1 readyState 4 amp amp ajax1 status 200 { var repl -
การส่งข้อมูลแบบ POST ด้วย Ajax (16,323)
ตัวอย่างโค้ด ajax post php lt script language "javascript" src "ajax js" gt lt script gt lt script language "javascript" gt function doajax mydata { var ajax1 createAjax nbsp ajax1 onreadystatechange function { if ajax1 readyState 4 amp amp ajax1 status 200 { document getElementById -
แสดงป้ายโฆษณา banner แบบสุ่ม random ด้วย ajax อย่างง่าย (15,774)
Javascript lt script language "javascript" src "ajax js" gt lt script gt nbsp lt script language "javascript" gt function doajax { var ajax1 createAjax nbsp ajax1 onreadystatechange function { if ajax1 readyState 4 amp amp ajax1 status 200 { document getElementById 'myplace' inne -
ตรวจสอบระดับความปลอดภัยของ รหัสผ่านด้วย Ajax (14,563)
ไฟล์ pass ajax php nbsp lt DOCTYPE HTML PUBLIC " W3C DTD HTML 4 01 Transitional EN" gt nbsp lt html gt nbsp lt head gt nbsp lt title gt Ajax Password ตรวจสอบระดับความปลอดภัยของ รหัสผ่านด้วย Ajax lt title gt nbsp lt meta http equiv "Content Type" content "text html charset windo -
กำหนดรายการใน listbox ที่ 2 จากเงื่อนไขการเลือก listbox ที่ 1 ด้วย ajax ใน jquery อย่างง่าย (20,642)
nbsp nbsp nbsp nbsp ตัวอย่างต่อไป เป็นตัวอย่างการใช้งานอย่างง่าย สามารถนำไปประยุกต์ใช้ได้อย่างกว้างขวาง เช่น ประยุกต์ใช้สำหรับ การเลือกจังหวัดในรายการ listbox ที่ 1 และให้แสดงอำเภอเฉพาะในจังหวัดที่เลือกใน listbox ที่ 2 หรืออื่นๆ เป็นต้นไฟล์ two listbox php lt form id "form1" name "form1" metho -
สร้างฟังก์ชัน autocomplete ให้ใช้งานแบบง่าย ด้วย ajax (19,440)
ไฟล์ที่จำเป็นต้องใช้ nbsp 1 autocomplete js nbsp 2 autocomplete css nbsp 3 autocomplete gif nbsp ทำการดาวโหลดโดยคลิกขวาที่ลิ้งไฟล์ด้านบน แล้วทำการบันทึกHTML Code ตัวอย่าง lt html gt lt head gt lt title gt lt title gt lt script type "text javascript" src "autocomplete js" gt lt script gt lt l