Re: how to use HTML_AJAX for dynamic drop menu creation
| From: | Joshua Eichorn | Date: | Tue, 18 Apr 2006 19:24:26 +0000 |
| Subject: | Re: how to use HTML_AJAX for dynamic drop menu creation | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23724@lists.php.net to get a copy of this message | ||
Octavi Fors wrote:
Hi, I am in the need of dynamically generate a drop menu (drop2) whose elements are function of the option value selected in another drop menu (drop1). Both menus are feeded via PEAR:DB database connection. HTML_AJAX seemes to be a good choice for that. However, I'm totally newbie in AJAX and after reading for some examples and documentation I am still stuck and cannot realize what my application should look like. I would be very grateful if somebody can bring me some light in this and make me start in this promising world of AJAX :-) Thanks in advance, ****************************************************** Octavi Fors Universitat de Barcelona. Àrea de Tecnologies. Aplicacions. mailto:ofors@ub.edu ******************************************************* Your basic app structure would be:Page that generates the original html/javascript ajax.php (contains an instance of HTML_AJAX_Server and registers a class for giving the values of the second menu) when drop1 is selected is uses the remote stub of the option generation class to make an ajax call passing in the selected option the callback for the remote method updates drop2 I can give you more details if needed -josh