Re: changing order of items

From: Date: Fri, 16 May 2008 12:11:36 +0000
Subject: Re: changing order of items
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-274418@lists.php.net to get a copy of this message
Jason Murray wrote:
I am assuming that each time you click the up or down arrow you are re-loading the page (via a GET request). A simple solution to this, would be to adjust the URLs assigned to the up and down arrows to carry an extra variable, the item either directly above or directly below the one selected, and instead of doing whole-sale renumbering, create a swap function. That just swaps the position of the two items.
Very good idea.

« previous php.general (#274418) next »