Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, April 20, 2024
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Populating DropDown boxes dynamicaly depending on other box

phpMyEdit General     Populating DropDown boxes dynamicaly depending on other box
Post new topic   Reply to topic    
 
jev     Joined: 30 May 2007   Posts: 1  
Post 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  
Post 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    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy