Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Populating DropDown boxes dynamicaly depending on other box

phpMyEdit General     Populating DropDown boxes dynamicaly depending on other box
Odoslať novú tému   Odpovedať na tému    
 
jev     Založený: 30.05.2007   Príspevky: 1  
Príspevok 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  
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov