From 64d95879fc506b795da7c965a0840ed49c09daf5 Mon Sep 17 00:00:00 2001 From: Konstantin Pozin Date: Sat, 23 Apr 2011 10:33:36 -0400 Subject: [PATCH] Fixed the test page and the handler interfaces. Wrote more of the README. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a9223a4..b74d04c 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ The plugin exposes the `onprogress` event in two ways: ### Global AJAX Event As a [global AJAX event](http://docs.jquery.com/Ajax_Events#Global_Events) that you can subscribe to. + $("#loading").bind("ajaxProgress", function(jqEvent, progressEvent, jqXHR) { if (progressEvent.lengthComputable) { $(this).text("Loaded " + (Math.round(progressEvent.loaded / progressEvent.total * 100) / 100)) + "%"; @@ -29,7 +30,7 @@ As a [global AJAX event](http://docs.jquery.com/Ajax_Events#Global_Events) that The handler signature is `function ( jqEvent, progressEvent, jqXHR )`, where `jqEvent` is the the event object created by jQuery, `progressEvent` is the native object conforming to the -(ProgressEvent interface)[http://www.w3.org/TR/progress-events/#interface-progressevent], and `jqXHR` is the original -(wrapper around the XMLHttpRequest object)[http://api.jquery.com/jQuery.ajax/#jqXHR]. +[ProgressEvent interface](http://www.w3.org/TR/progress-events/#interface-progressevent), and `jqXHR` is the original +[wrapper around the XMLHttpRequest object](http://api.jquery.com/jQuery.ajax/#jqXHR). ### Local AJAX Event \ No newline at end of file