->Drop down menus automatically updated?<-

This is a discussion on ->Drop down menus automatically updated?<- within the PHP Language forums, part of the PHP Programming Forums category; Hi, I'd like to know whether there is a class or some code sample available somewhere to do what ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-27-2006
Steve JORDI
 
Posts: n/a
Default ->Drop down menus automatically updated?<-

Hi,
I'd like to know whether there is a class or some code
sample available somewhere to do what I'd like to achieve.

I have two drop down menus next to each other.
The first one has its content dynamically loaded from a
database and I want the second drop down to be updated,
also from a DB request, accordingly to the user selection
in the first one.

For example, the first one would be countries, and once
you select a specific country, the 2nd drop down would
list some cities from this country.

Any way to do this?
Any way to do this without a page reloading?

I was thinking about Ajax technology.

Any advice?

Thanks for any help.
Steve

Sincerely,
Steve JORDI

(Remove the K_I_L_LSPAM from my email address)
------------------------------------------------
1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com
Switzerland WWW: www.sjordi.com
------------------------------------------------
Volcanoes at www.sjordi.com/volcanoes
MovieDB at www.sjmoviedb.com
------------------------------------------------
Reply With Quote
  #2 (permalink)  
Old 07-27-2006
fsidler@nospam.gmail
 
Posts: n/a
Default Re: ->Drop down menus automatically updated?<-


Steve JORDI wrote:
> Hi,
> I'd like to know whether there is a class or some code
> sample available somewhere to do what I'd like to achieve.
>
> I have two drop down menus next to each other.
> The first one has its content dynamically loaded from a
> database and I want the second drop down to be updated,
> also from a DB request, accordingly to the user selection
> in the first one.
>
> For example, the first one would be countries, and once
> you select a specific country, the 2nd drop down would
> list some cities from this country.
>
> Any way to do this?
> Any way to do this without a page reloading?
>
> I was thinking about Ajax technology.
>
> Any advice?
>
> Thanks for any help.
> Steve
>
> Sincerely,
> Steve JORDI
>
> (Remove the K_I_L_LSPAM from my email address)
> ------------------------------------------------
> 1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com
> Switzerland WWW: www.sjordi.com
> ------------------------------------------------
> Volcanoes at www.sjordi.com/volcanoes
> MovieDB at www.sjmoviedb.com
> ------------------------------------------------

You could reload the page using JavaScript after you've chosen the
country, and then fill he second menu with the cities selected.
Another, more modern way would be to use AJAX, can't help there however.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:40 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0