Application developers can use the Reorderer to allow their users to directly move around and re-arrange content on the page. In most cases, the application running on the server will want to know about any changes to the ordering. The order-changed callback is used for this purpose. The order-changed callback is a function that is passed to Reorderer initialization. This function must be written by the application developer, and is responsible for communicating changes in ordering to the server in whatever form the server requires. This might take the form of an AJAX call sending a JSON object, or a form submission, for example. |