Documentation for a historical release of Infusion: 1.3
Please view the Infusion Documentation site for the latest documentation.
If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

Deprecated - afterMoveCallback

This page describes an option that has been deprecated as of version 1.1.2. It is still available for backwards compatibility, but will be removed in a future version. The preferred way to implement this functionality is to register your own custom afterMove listener as described in Talking to the Server Using The afterMove Event.

Prior to version 1.1.2, the Reorderer accepted an option called afterMoveCallbackUrl. This was an URL that a new item order could be posted to.

If the afterMoveCallbackUrl is provided, a default afterMove event handler will post the new item order to the specified URL.

To use this option, implementors MUST abide by certain conventions:

  • The container element must be a <div> element, and it must have a unique ID.
  • The container element must be contained within a <form> element. The form will be submitted to the server to communicate changes in the thumbnails' order.
  • Thumbnails must be <div> elements.
  • Thumbnail <div> elements must be marked with an ID that is of the form:
       containerId + "lightbox-cell:" + index + ":"
    where
       containerId is the ID of the container of the orderables, i.e. the root node of the Image Reorderer,
       index is any number of digits, indicating the current index of the orderable item.
  • Each orderable element must have a hidden <input> element associated with it, used to communicate changes to the thumbnails' order back to the server. The input element must have
    • a name
    • a value that is the index
    • an ID of the form:   containerId + "lightbox-cell:" + index + ":reorder-index"
    • For example, an ID may look like this: gallerylightbox-cell:0:reorder-index