#Ajax Utility jQuery Plugins#
##About##
jquery.replace_location - replaces a location with data loaded via an AJAX request initiated by a click or change JavaScript action on a DOM element
##Background##
##Requirements##
jQuery 1.7 – Tested jQuery 1.7+
##Installation##
-
Manual
- Download this: https://github.com/jtyost2/Ajax-Utils/zipball/master
- Unzip that download.
- Copy the resulting folder to your JavaScript Directory
- Rename the folder you just copied to @ajax-utils@
-
Git Submodule
- In your JavaScript directory type:
git submodule add git://github.com/jtyost2/Ajax-Utils.git ajax-utils
git submodule init
git submodule update
-
Git Clone 1 . In your JavaScript directory type 2.
git clone git://github.com/jtyost2/Ajax-Utils.git ajax-utils
##Usage##
Include a link to the jQuery Plugin in your HTML files
$(objectsToUsePluginOn).replace_location();
##Options##
replaceLocation
: Data Attribute to load the location to replace with data from the AJAX request, default isrepleace-location
ajaxType
: Type of AJAX request to send, default isPOST
replaceLocationURLAttr
: Attribute to use as the url of the AJAX request, default ishref
replaceLocationURLFormAttr
: Attribute to use as the url of the AJAX request on submit event handlers, ie for forms, default isaction
##ToDo##
- Build Unit Tests