PhpRiot
Download This Article
Download this article in PDF format with all listings and files.

Price: $5.00 AUD
(Approx. $4.45 USD)

More information
Related Books
Prototype and Scriptaculous in Action [Ajax]

Prototype and Scriptaculous in Action [Ajax]

Prototype and Scriptaculous are libraries that extend standard Ajax. They make it easier to...
Browse Articles
Ajax (4), APC (1), CAPTCHA (1), CSS (3), Debugging (1), File Upload (1), Google (3), Google Maps (2), JavaScript (10), JSON (2), MVC (1), MySQL (6), onbeforeunload (1), OOP (1), PHP (27), PhpDoc (1), PostgreSQL (6), Prototype (9), Reflection (1), RFC 1867 (1), Robots (1), Scriptaculous (1), SEO (1), Sessions (1), SimpleXML (1), Smarty (5), SOAP (1), SPL (1), Templates (2), W3C (1), XHTML (1), Zend Framework (1), Zend_Search_Lucene (1)

PhpRiot Newsletter
Your Email Address:

Comments

Article Comments (2 total)

Belal, 14 November 2007

Thank you very much for the article. For the past 10 months I have been looking for this script. I have developed a application for a client. They said we want have specific items to appear at the top as they needed the most. I wanted to work on a very complicated drop down menu; but could not do it. This is exactly what I wanted. Now the user can arrange the list in any way he wants.


Audrey, 6 November 2007

This is such a cool script. I can't believe I'm the first person to comment on it. I have a wrinkle for you that I can't figure out because I'm so new to both Ajax and Scriptaculous.

This example works great if you're sorting every record in your database, but I only want to sort segments of it at a time (I use another table to pull the various subsets of records). I want to create a user interface that allows someone to select a subset via a $_REQUEST variable, and sort only those few records, and then request another subset, sort only those, etc.

The records will only display w/in their subsets so the rolling sort order does not matter, just how it sorts with like records.

The problem comes in with passing the $_REQUEST variable to the update fuction. I can display the subsets just fine, but when I actually update them, it only updates the records called in the first request variable I've chosen, and doesn't reset with each new $_REQUEST. Can you help? Do I make it a Session variable instead?

Submit a Comment
Use the following form to submit a comment for this article. You can include any required code snippets, which we will format and highlight accordingly.


Note: Before your comment appears on PhpRiot, it must be manually approved. The email address field is optional. If you choose to include it, it will be displayed obfuscated to protect it from spammers.

In This Article