automatically enhances elements based on data-attributes or class names.  supports an asynchronous user interface.  This code is open source.

Install-Package Candor.jQuery.AutoAsync -Version
dotnet add package Candor.jQuery.AutoAsync --version
<PackageReference Include="Candor.jQuery.AutoAsync" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Candor.jQuery.AutoAsync --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

4.1.0: * New Plugin: inline-editable-header - a section that can be updated each time an item is added or removed from an inline-editable-host, the template model contains data about the list.
* changed css style used for showing error messages from a JSON response to a bootstrap text-danger or text-default as appropriate.
* minor bugs fixed, plus now editable buttons now disable during update and then re-enable to prevent double submissions.
4.0.0: * New Plugins: listbuildersource, changeupdate, enhancelist, wizard, and carousel (for boostrapper carousels).
* Lots of new use cases enabled with new options in data attributes and in ajax json responses.  See the related github commit comment for more details.
3.5.0: * form post can now handle multi-part forms with mixed file uploads and normal form fields.  Fallback to prior behavior when forms do not have the enctype='multipart/form-data'
3.4.0: * datarepeater elements will now call 'enhance' on each item after adding to the repeat container.
* the main button click method AJAX post response will now recognize a Web API style response if a JSON object response object does not contain a 'success' property.  A 'success' property will trigger fallback to current functionality of expecting a property named 'item'.  A non-JSON string response will still be treated as replacement html. These changes are backwards compatible.
3.3.0: * Fix potential null reference error preparing data to post after button click
3.2.0: * AJAX posted JSON object now removes data objects that are jQuery objects/widgets or functions (from button data attribute fall-back introduced in 3.1.0)
3.1.0: * post function will now use a Web API error response text for display to user, with fall-back to prior message logic.
* added datepicker plugin
* fix autocomplete and listbuilder async plugin for proper widget use
* consistent casing checks on form method
* on button click, the JSON data used has a final fall-back value of the button's data attributes instead of null.
* on view template toggle, it better handles the case of when 'cancel' type actions were for an add that should not toggle or if for an edit that should toggle back to a view.
3.0.0: * renamed method 'enhanceCallback' to 'addCallback'
* removed obsolete methods and plugins
* added template-dialog and inline-editable-host-updater plugins
2.1.0: * add 'autoaync.refreshEditable' method - reloads items in an ".inline-editable-host" or an item repeater on demand.  The url of the host removes any parameters in the url for that get/post that are defined as data attributes on the button.
* add 'autoasync.urlRemoveParams' method (used by refreshEditable) .
* autoasync.clickButton added an automatic complete callback to refreshEditable on any element selectors defined in a 'data-host-selector' attribute of the button.
* 'inline-editable-button' elements can now be anywhere within an enhanced element. It can specify an 'data-editable-container' as an alternate to being in an '.inline-editable-host"

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 844 3/4/2016 731 1/30/2015 945 2/11/2014 613 1/4/2014 613 12/23/2013 635 12/18/2013 627 12/17/2013 637 10/23/2013 636 10/21/2013 668 8/16/2013 723 6/5/2013 741 2/24/2013