News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
DotVoid.com:
Reordering nested sets using PHP and Javascript
September 14, 2007 @ 14:44:00

On the DotVoid blog today, Danne Lundqvist has posted about a problem he had - creating parent/child style data and displaying it as nested sets with the combination of PHP and Javascript. He outlines two different methods but only chooses one to run with.

The first method is "adjancency", a method that involves storing a parent ID in each node and recursing to find the related ones. He goes with a different solution, however - a "nested set". This method stores the data in terms of where it's located on the tree (layers from right, layers from left, etc).

Last night I was working on an application that display a full tree where the user must be able to to drag and drop nodes to reorder the tree. The problem is that it is much more difficult to insert or reorder the tree using the nested set model.

This was particularly effective in solving his problem, making a reogranizable listing that could be manipulated via a Javascript interface (the MooTree script from MooTools). Hi sPHP solution is included.

6 comments voice your opinion now!
javascript order list nested set adjancency method model javascript order list nested set adjancency method model





Richard Patterson
prealtar gelation caprigenous unfiscal seminality suffruticulose trimerite ungelt
Buying A Second Home
http://vzxxydgp.info/d3
Kenmore Water Softener Troubleshooting
http://fsetmawv.info/jx
Buy Ching-chiang Cabbage Seed Online
http://fsetmawv.info/46
Yahoo Games Klondike
http://fsetmawv.info/es
Search Snowmass Mls
http://bypsrldh.info/8o
Free Sms Sending Software
http://bypsrldh.info/gq
Men S Basketball Ncaa Sports Com
http://vzxxydgp.info/be
Palm Leaf Cowboy Hat
http://fsetmawv.info/8e
West Coast Exclusive
http://njggoatf.info/8u
Professional Web Hosting And Ecommerce
http://vzxxydgp.info/69
Best Friend Moving Away Songs
http://njggoatf.info/b7
Turbo Honda Crx
http://oasrhslz.info/2
Pocket Bike Wholesale
http://vzxxydgp.info/g1
Grand Theft Auto Liberty City Stories
http://vzxxydgp.info/h5
Candy Cane Lane Milwaukee
http://oasrhslz.info/15
Tropical Duvet Covers
http://bypsrldh.info/gj
Gas Mileage Improvement
http://fsetmawv.info/ip
Pad Printing Equipment
http://fsetmawv.info/hd
Martin Luther King Speeches
http://vzxxydgp.info/fz
Used Truck Bodies
http://njggoatf.info/ht
Camping In North Georgia
http://njggoatf.info/d7
Ohio Concealed Carry Permit
http://bypsrldh.info/6n
September 11 2001
http://njggoatf.info/gq
Family Kids Pictures
http://fsetmawv.info/77
Consommable Cartouche Encre
http://vzxxydgp.info/gi
Asian Personal Ads
http://bypsrldh.info/hw
Rocky Point Weather
http://fsetmawv.info/5t
Double Bicycle Seat W Sissy Bar
http://fsetmawv.info/3e
Lcd Screen Tv
http://fsetmawv.info/an
1992 Dallas Cowboys
http://bypsrldh.info/ic




Similar Posts

Zend Developer Zone: Zend Framework Browser Plugins

SitePoint PHP Blog: It's official: Javascript sucks harder than PHP

Zend Developer Zone: Round\'em up, Head\'em out...Let\'s do a Framework Roundup!

Ligaya Turmelle's Blog: NuSphere PHPEd review

Avatar Financial Group: 21 Things I Learned about CakePHP


Community Events







Don't see your event here?
Let us know!


releases PEAR database example code package zend release zendframework PHP5 job application conference security developer mysql book ajax framework cakephp

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework