jev
Založený: 30.05.2007
Príspevky: 1
Zaslal: 2007-05-30 22:08
Návrat hore
Odpovedať s citátom
|
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
Založený: 31.05.2008
Príspevky: 2
Zaslal: 2008-05-31 20:34
Návrat hore
Odpovedať s citátom
|
Here is a cheap mysql editor that can do this. It is written in ajax
http://www.mysqlajaxtableeditor.com/
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|