>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

AJAX Chat Tutorial Part 2 - php zend chat javascript ajax div part scriptaculous

 
Registered tutorials: 501
Registered Users: 29884



Rating: 0 out of 0 votes cast


  
Category: JavaScript Framework

AJAX Chat Tutorial Part 2

Digg this   Post to del.icio.us

Abstract: The tutorial shows how to create a chat application using Prototype and Scriptaculous. Author overviews both javascript library and shows how to setup the right environment

Prototype and Scriptaculous

For this chat application we'll be using two popular javascript libraries: Prototype and Scriptaculous.

Prototype is a Javascript framework that aims to ease development of dynamic web applications. At the risk of being dubbed a traitor to PHP (just kidding!) it's integrated into the Ruby On Rails framework which seems to set a lot of gold standards these days. Prototype features class-based Javascript covering areas of particular interest to web developers such as an AJAX component, shortcut methods to commonly used Javascript functions, extensions to Javascript classes, and more besides.

Some of the finest documentation for Prototype 1.4.0 can be found at http://www.sergiopereira.com/articles/prototype.js.html. We will be using the current 1.5.0_rc1 version packaged with the Scriptaculous library but this excellent documentation still applies.

Scriptaculous (which is built on top of Prototype) offers visual effects. A lot of visual effects. These combination effects are not just for eye candy either. Using Scriptaculous, complex effects like sliders, drag and drop and similar features can be implemented quite easily without much effort. We won't be digging into this library very much but you can catch the example combination effects by visiting http://wiki.script.aculo.us/scriptaculous/show/CombinationEffectsDemo.

Prototype and Scriptaculous Setup

Setting up Prototype and Scriptaculous is a simple task. Download the Scriptaculous package from http://script.aculo.us/downloads and extract it to the ./public/javascript directory. Rename the package directory to "scriptaculous". Scriptaculous already includes the Prototype 1.5.0rc_1 library so we're good to go.

All we need do now is include the javascript files for both libraries in our chat application's HTML.


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 185
Unique Hits: 157


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0.2 0.3 0.6 0.9 4.3 5.3
Current 0 0 0 0 2 3
Previous 0 0 2 3 3 4
Oct 13 0 0 0 0 5 7
Oct 12 0 0 2 2 5 6
Oct 11 0 0 1 2 3 3
Oct 10 0 0 0 0 0 0
Oct 9 0 0 0 0 18 22
Oct 8 2 3 0 0 4 4
Oct 7 0 0 1 2 3 4
Oct 6 0 0 0 0 0 0
Highest 4 5 13 14 39 43


Script Execution Time: 0.31656 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2