PDA

View Full Version : [JS] Non-OOP, Function Based AJAX Library



BYK
12-02-2007, 03:51 PM
1) CODE TITLE: AJAX Library

2) AUTHOR NAME/NOTES: BYK

3) DESCRIPTION: This library includes some useful functions to make AJAX calls and background AJAX and XML operations easier. For ease of use, we did not used an object model, instead we used a function model which generally manages the internal XmlHTTPRequest object and is based on callBack functions.

4) URL TO CODE: http://amplio-vita.net/JSLib

Demos are on the given URL but a direct link to the demo very brief demo site is here(only loadDynamicContent function is used): http://goeker.amplio-vita.net/heart

Also Quick Edit Library (http://dynamicdrive.com/forums/showthread.php?t=27136) and Dynamic Language Changer (http://dynamicdrive.com/forums/showthread.php?t=27137) internally uses this library. You may examine their codes and comments for further demonstrations.

Note: This library is a part of the amplio-vita JSLib project. All explanations are made on the uncompressed library as comments. Please give feedback to improve our library.

BYK
12-07-2007, 04:05 PM
Now, the library has support to warn the user when he/she tries to leave the page if there are ongoing AJAX requests like in the GMail. :)

BYK
02-01-2008, 02:42 PM
The commentary system is changed to ScriptDoc standard which made the whole libarary much more easy to understand.

You may find the complete specification for ScriptDoc @ http://www.scriptdoc.org/specification.htm

A direct link to the commented libarary: http://amplio-vita.net/JSLib_files/ajax_main.js
And a direct link to its compressed version: http://amplio-vita.net/JSLib_files/ajax_main_comp.js

Comments are appreciated.