The Taconite jQuery plugin provides some convenient helper functions to make issuing the Ajax calls from the browser very easy. jQuery provides three commonly used functions:
The Taconite jQuery parser provides three similar functions that automatically use Taconite to consume the server's XML response:
- $.taconiteGet(url, [data])
- $.taconitePost(url, [data])
#1 and #2 are identical to the jQuery $.get and $.post functions, respectively, with the only difference being that the third argument (the success callback) is not necessary, as these functions automatically delegate to Taconite. Both of these functions append a query parameter named _ts with a random numeric value to avoid any caching issues.
#3 is identical to jQuery's $.ajax() function. The only difference is that #3 tweaks the "settings" parameter to use Taconite for the success callback, and specify that the server's response type is xml. Additionally, the "cache" property of the settings parameter is set to false to avoid any caching problems.