SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Not yet perfect mattalexx's Avatar
    Join Date
    Oct 2005
    Location
    Taos, NM, US
    Posts
    441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scriptaculous Lists

    http://www.gregphoto.net/sortable/

    Does anyone know how I could add an AJAX callServer() to this? I can't figure out how to add an event to it.
    Matt Alexander
    Alexander Site Design

  2. #2
    Not yet perfect mattalexx's Avatar
    Join Date
    Oct 2005
    Location
    Taos, NM, US
    Posts
    441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This did it for me:

    Sortable.create('divContainer', {tag:'div', onUpdate:callServer});

    In PHP, with the aforementioned class:
    PHP Code:
    $sortableLists = new SLLists('/include/lib/SLLists.class/scriptaculous');
    $sortableLists->addList('divContainer','divOrder','div'"onUpdate : callServer"); 
    Matt Alexander
    Alexander Site Design


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •