SmartAjaxForm 1.4

Lets just send forms via AJAX and display the result. You need only to set the class to "ajaxForm" to your form-tag and it will work.



Details

Author
Benedikt Morschheuser
Current version
1.4
GitHub
BMo-design/SmartAjaxForm
Downloads
18318
Category
Forms
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_: core/1.3: '*'

How to use

Get started by copy this in your head:

window.addEvent('domready', function() {
    var mySmartFormObj = new SmartAjaxForm();
});

and add the class "ajaxForm" to your form-tags:

form id="myForm" class="ajaxForm" action="demo.php" method="post"

It is important to make no cross-domain request. So use relative urls in the action attribute.


Syntax

new SmartAjaxForm([options])


Arguments

  • no Arguments

Options

  • regExpClassname: (regexp) To change the CSS class name, for example /^ajaxForm/i -> class='ajaxForm'
  • responseClass: (String) CSS class name for the response
  • loadingClass: (String) CSS class name for the loading animation

Events

  • onClick
  • onComplete
  • onFailure

Contact

Please contact me (info@BMo-design.de) if you have any suggestions or comments.


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus