ฟอนต์ฟอรั่ม ดาวน์โหลดฟอนต์ | บทความ | ฟอรั่ม | เกี่ยวกับเรา
26 พ.ค. 2012, 10:37 น. *
ยินดีต้อนรับจ้ะ ขาจร กรุณา เข้าสู่ระบบ หรือ สมัครสาวก
ส่งอีเมลยืนยันการใช้งาน?

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
ร้านสกรีนเสื้อ
ข่าว:
   หน้าแรก   คุ้ยกระจู๋ เข้าสู่ระบบ สมัครสาวก  
  พิมพ์  
ผู้เขียน กระจู๋: Ajax  (อ่าน 5003 ครั้ง)
0 สาวก และ 3 ขาจร กำลังดูกระจู๋นี้
ยักษ์
*****
จิตพิสัย 3278
โพสต์: ขี้เกียจนับ
ความหล่อ: ประเมินค่ามิได้
iannnnn iannnnn เว็บไซต์ ออฟไลน์ ออฟไลน์
Re: Ajax (23 มิ.ย. 2006, 20:38 น.)
กร๊าก เชื่อไหมว่าตูก็อ่านข่าวนี้และขุดจู๋นี้มาเหมือนกัน แต่ไม่ได้โพสต์

พอดีอยากหาคำอ่านออกเสียงว่ามันอ่านว่าอะไรกันแน่
อะ หรือ เอ เลยถามในสกายปิ๊
บันทึกการเข้า
::::
มังกร
******
จิตพิสัย 214
โพสต์: 18652
อีเมล ออฟไลน์ ออฟไลน์
Re: Ajax (26 มิ.ย. 2006, 12:04 น.)
อะจ๊ากกับฟย้าก
บันทึกการเข้า

สะพรึบสะพรั่ง ณหน้าและหลัง ณซ้ายและขวา ละหมู่ละหมวด ก็ตรวจก็ตรา ประมวลกะมา สิมากประมาณ
ยักษ์
*****
จิตพิสัย 3278
โพสต์: ขี้เกียจนับ
ความหล่อ: ประเมินค่ามิได้
iannnnn iannnnn เว็บไซต์ ออฟไลน์ ออฟไลน์
Re: Ajax (28 พ.ย. 2006, 17:05 น.)
ขุด






mk บอกว่า เหนือกว่า Ajax มี Comet
ก็เลยกดเข้าไปดู โอ้พระเจ้าจอร์จ w บุช







นี่คือความแตกต่าง
http://alex.dojotoolkit.org/?p=545

แอบอ้าง
Why Is Comet Better For Users?

Regular Ajax improves the responsiveness of a UI for a single user, but at the cost of allowing the context to go “stale” for long-lived pages. Changes to data from others users is lost until a user refreshes the whole page. An application can alternately return to the “bad old days” and maintain some sort of state mechanism by which it tells client about changes since the last time they’ve communicated. The user has to either wait until they preform some action which would kick off a request to see the updated state from other users (which might impact the action they wanted to preform!) or request changes from the server at some interval (called “polling”). Since the web is inherently multi-user, it’s pretty obvious that regular Ajax imposes usability and transparency hurdles for users. Applications that employ the Comet technique can avoid this problem by pushing updates to all clients as they happen. UI state does not go out of sync and everyone using an application can easily understand what their changes will mean for other users. Ajax improves single-user responsiveness. Comet improves application responsiveness for collaborative, multi-user applications and does it without the performance headaches associated with intermittent polling.









นึกภาพกันไม่ออกละสิ  หมีโหดดดด
งั้นดูนี่

http://dojotoolkit.org/
(กดไปดูในหน้า see in action)
บันทึกการเข้า
S<3Ne
มังกร
******
จิตพิสัย 1311
โพสต์: 38491
Why so Talork !?
fake.or.dead fake_or_dead เว็บไซต์ ออฟไลน์ ออฟไลน์
Re: Ajax (28 พ.ย. 2006, 17:17 น.)


 เจ๋ง ชอบๆ

AJAX ยังไม่ทันจะเขียนเป็นดีๆ เลย

มา Comet อีกแล้ว  ง่ะ

บันทึกการเข้า

ไอ้หน้า
หมู
***
จิตพิสัย 19
โพสต์: 456
Cracky มั้ง
ออฟไลน์ ออฟไลน์
Re: Ajax (28 พ.ย. 2006, 17:42 น.)
มันมี frame work ให้ใช้ฟรีครับ

หรือถ้าไม่อยากใช้ก็แค่เรียนรู้สิ่งต่อไปนี้


1.php/asp/server side script

2.javascript

3.HTML DOM

ทุกอย่างมีสอนใน www.w3schools.com
บันทึกการเข้า

0U!
ใหญ่เท่า
มังกร
******
จิตพิสัย 964
โพสต์: 19103
เรื่องเยอะ
jsiripongse iwoolfz เว็บไซต์ ออฟไลน์ ออฟไลน์
Re: Ajax (28 พ.ย. 2006, 18:46 น.)






สารภาพว่าเพิ่งต้วมเตี้ยมเรียนเจ้าพวกนี้จากเว็บที่ลุงฮาร์ทเอาลิงก์สดมาลง




http://dojotoolkit.org/




ชื่อเว็บแอบน่ารักแฮะ หมีโหดดดด


บันทึกการเข้า

งบน้อย
Earth
มังกร
******
จิตพิสัย 228
โพสต์: 7770
earthchie earthchie เว็บไซต์ อีเมล ออฟไลน์ ออฟไลน์
ตอบ: Ajax (25 ส.ค. 2011, 19:37 น.)
ขุดข้ามปี

มีเรื่องมาให้ช่วยอีกแล้วครับ  อ๊าง~

ตอนนี้ทำ inline edit อยู่ กด edit ได้แล้ว แต่ส่งข้อมูลไปเซฟฝั่งเซิร์ฟเวอร์ไม่ได้

โค้ด html ครับ

โค้ด:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript" src="js/mootools.v1.2.js"></script>
<script type="text/javascript" src="js/xpath.js"></script>
<script type="text/javascript" src="js/inlineEdit.v3.js"></script>
<script type="text/javascript">
window.addEvent('domready',function(){

var updateHtml = function(element){
var data = element.get('html');
// post data ไป php ยังไงครับ
};

$$('div.inline p').each(function(el){
el.addEvent('click',function(){this.inlineEdit({
onComplete:updateHtml,
stripHtml:true
});
});
});
});
</script>
</head>
<body>
<div class="inline">
<p>Click here to edit message</p>
</div>
</body>

ตอนนี้ตัวแปร data มีค่าที่ต้องการอยู่ อยากส่งข้อมูลแบบ POST ไปที่ไฟล์ data.php ต้องทำยังไงครับ

แล้วถ้าเกิดจะส่งมากกว่า 1 ตัวแปรทำได้มั้ยครับ

ไฟล์ครับ (22KB)
http://dl.dropbox.com/u/4872249/script/inlineEdit.zip
บันทึกการเข้า

ชื่อ Earth ครับ เรียกเอิดก็ได้ | Earthchie's Blog
หน้า: 1 2 3 4 [5]   ขึ้นบน
  พิมพ์  
 
 
กระโดดไป:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2006-2007, Simple Machines | Thai language by ThaiSMF Valid XHTML 1.0! Valid CSS!
ขอบคุณ SMF Forum