https://github.com/cdata/chainquery
ChainQueries are persistant ajax request generators with a chain-able syntax.
https://github.com/cdata/chainquery
Last synced: 6 months ago
JSON representation
ChainQueries are persistant ajax request generators with a chain-able syntax.
- Host: GitHub
- URL: https://github.com/cdata/chainquery
- Owner: cdata
- Created: 2011-04-11T03:31:38.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-06-03T06:06:30.000Z (over 14 years ago)
- Last Synced: 2025-03-27T22:17:03.891Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChainQuery
ChainQuery is a very basic library intended to make jQuery AJAX requests less of an ugly chore. If you are writing an HTML frontend for a web app, this means that you are making a lot of very similar AJAX requests all over the place. ChainQuery allows you to cut down on the cruft associated with this.
## Examples
### Basic AJAX Request
$.query('/path/to/service/endpoint').execute();
### Reuse and Recycle
var getFoo = $.query('/path/to/service/endpoint').options({success: function() { /* parse service data */ }});
var getBar = getFoo.clone().data({query: "bar"});
getFoo.execute();
getBar.execute();