|
Posted by chotiwallah on 11/15/05 13:28
for a real drag-and-drop you'll need javascript.
using arrows to move an item up or down can be done with php. the
drawback here would be that every click on an arrow will cause a trip
back to the server to recreate the menu in the new order.
wether to use a javascript or php approach depends on a lot of factors,
to name a few:
- if the sorting is a crucial functionality of your site, don't use
javascript (people might have it disabled or not even visiting with a
browser)
- if the new order shall be stored for a certain user, you'll need php
anyway
- if speed is a factor, javascript maybe better
i personally would probably use php and not mess around with
javascript.
micha
Navigation:
[Reply to this message]
|