jev
Joined: 30 May 2007
Posts: 1
Posted: 2007-05-30 22:08
Back to top
Reply with quote
|
I wonder if there is a quick way to hack this without saying the AJAX buzzword... :)
I want to update a drop down box dynamicaly depending on the choice made in a previous drop down box.
Imagine the hierarchy:
Departments: Finance, Programming
Subdepartments: Finance/Controlling, Finance/HR, Programming/Frontend, Programming/Backend
An employee is member of a subdepartment, so the choice Department Finance and Subdepartment Backend is invalid.
I think about using drop down boxes.
Basically, when editing the record and chosing Department I want to update the possible Subdepartment settings without reloading.
The long way to do it would be
- fire onChange event in box1
- load list of valid values for box2 via http (javascript)
- populate box2 via javascript
Is there a short way to do it? Or an *official' phpMyEdit way? :)
cheers,
j
|
cbl016
Joined: 31 May 2008
Posts: 2
Posted: 2008-05-31 20:34
Back to top
Reply with quote
|
Here is a cheap mysql editor that can do this. It is written in ajax
http://www.mysqlajaxtableeditor.com/
|
Post new topic
Reply to topic
|
|
|