This add-on is intended to be a demonstration of how to work with AJAX form submission data and return HTML that can be inserted into your page without a refresh.
It takes the form of a very simple textbox into which notes can be entered, then when submitted, they appear in a list of recent notes below.
The add-on makes use of XenForo.AutoValidator to facilitate the form submission, then uses custom code in the controller and the view layer to return template HTML and additional data.
This video accompanies the add-on, and explains what is going on:
http://vimeo.com/17132298Or view on Vimeo
To install the add-on, decompress the zip then upload the contents of the upload directory (which should contain js/scratchpad and library/Scratchpad) and finally install the addon_Scratchpad.xml via the XenForo Add-on Installer system.
It takes the form of a very simple textbox into which notes can be entered, then when submitted, they appear in a list of recent notes below.
The add-on makes use of XenForo.AutoValidator to facilitate the form submission, then uses custom code in the controller and the view layer to return template HTML and additional data.
This video accompanies the add-on, and explains what is going on:
http://vimeo.com/17132298Or view on Vimeo
To install the add-on, decompress the zip then upload the contents of the upload directory (which should contain js/scratchpad and library/Scratchpad) and finally install the addon_Scratchpad.xml via the XenForo Add-on Installer system.