Login   Register  
PHP Classes
elePHPant
Icontem

AJAX Locking

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Fabio Ambrosanio
Name: Fabio Ambrosanio <e-mail contact>
Packages: 4 Browse all classes by Fabio Ambrosanio Browse all classes by
Country: Italy Italy - PHP jobs in Italy
Age: 45
All time rank: 47017 in Italy Italy
Week rank: 574 Down25 in Italy Italy Down
Innovation award
Innovation award
Nominee: 3x


  Detailed description   Download .zip .tar.gz  
This package can be used lock server side resources to prevent race conditions that may occur when two users want to access the same resource simultaneously.

It uses AJAX to lock and unlock resources from Javascript code running on the browser, thus without reloading the current page.

The package comes with several drivers that can use different containers to manage the resource lock information. Currently it supports two drivers for SQL databases and shared memory as containers.

  Classes of Fabio Ambrosanio  >  AJAX Locking  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: AJAX Locking
Base name: ajax_locking
Description: Lock server side resources from AJAX requests
Version: 0.4.1
PHP version: 4.2.0
License: The PHP License
All time users: 2339 users
All time rank: 1472
Week users: 2 users
Week rank: 1363 Up
 
  Groups   Rate classes User ratings   Applications   Related links   Files Files  

  Groups  
Group folder image Language Constructs to assist in the language control View top rated classes
Group folder image AJAX Interact with the Web server without page reloading View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
November 2006
Number 3

Prize: One book of choice by SAMS
AJAX applications may trigger multiple requests to the Web server that can occur at the same time.

If different requests attempt to access and change the same server side resources at the same time, this may lead to race conditions that may cause undesired effects.

This class provides a solution that can be used to prevent this problem. It can lock server side resources that are being manipulated upon browser side events that trigger AJAX requests.

Manuel Lemos

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (75.0%)
Sufficient (75.0%)
Not sure (50.0%)
Sufficient (62.5%)
-
-
Not sure (56.2%)
1098
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
AJAX_Locking homepage Description of the project and related links
API documentation Documentation generated with PHPDocumentor
My own PEAR channel PEAR channel where you can download this package

  Files folder image Files  
File Role Description
Files folder imageDriver (4 files)
Files folder imagejs (1 file)
Files folder imagetests (7 files)
Accessible without login Plain text file README.txt Doc. README
Plain text file AJAX_Locking.php Class PEAR HTML_AJAX class

  Files  /  Files folder image Driver  
File Role Description
  Plain text file Driver.php Class Base class for AJAX_Locking drivers
  Plain text file File.php Class Driver based on plain filesystem
  Plain text file MDB2.php Class Driver based on PEAR's MBD2 package
  Plain text file SharedMemory.php Class Driver based on PEAR's System_SharedMemory package

  Files  /  Files folder image js  
File Role Description
  Accessible without login Plain text file Locking.js Data Javascript library to handle AJAX calls

  Files  /  Files folder image tests  
File Role Description
  Accessible without login Image file locked.png Icon locked image
  Accessible without login Image file owned.png Icon owned image
  Accessible without login Plain text file server.php Aux. Example AJAX server
  Accessible without login HTML file test.html Data Test/Example
  Accessible without login Image file timeoutpng Icon timeout image
  Accessible without login Image file unlocked.png Icon unlocked image
  Accessible without login Plain text file _test.php Example Test/example

Download all files: ajax_locking.tar.gz ajax_locking.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.