Ajax

เริ่มโพสต์โดย อู๋, 13 ต.ค. 2005, 23:54 น.

0 สมาชิก และ 1 บุคคลทั่วไป กำลังเปิดอ่านโพสต์นี้

iannnnn

:30: เชื่อไหมว่าตูก็อ่านข่าวนี้และขุดจู๋นี้มาเหมือนกัน แต่ไม่ได้โพสต์

พอดีอยากหาคำอ่านออกเสียงว่ามันอ่านว่าอะไรกันแน่
อะ หรือ เอ เลยถามในสกายปิ๊

|<3N

อะจ๊ากกับฟย้าก
สะพรึบสะพรั่ง ณหน้าและหลัง ณซ้ายและขวา ละหมู่ละหมวด ก็ตรวจก็ตรา ประมวลกะมา สิมากประมาณ

iannnnn

ขุด






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)

ยุนเอ



:12: ชอบๆ

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

มา Comet อีกแล้ว  :08:

เราจะต้องการอะไรมากมายไปกว่า อะไรมากมาย

heart

มันมี frame work ให้ใช้ฟรีครับ

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


1.php/asp/server side script

2.javascript

3.HTML DOM

ทุกอย่างมีสอนใน www.w3schools.com

Ou!







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



อ้างคำพูดจาก: iannnnn เมื่อ 28 พ.ย. 2006, 17:05 น.

http://dojotoolkit.org/



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


งบน้อย

Earthchie

ขุดข้ามปี

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

ตอนนี้ทำ 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

SMF 2.1.7 © 2026, Simple Machines