470,815 Members | 2,068 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Drop down menu selection activation

I have a form that is populated with a drop down list and a list box. I
want to be able to automatically populate the list box, whenever a user
selects a new item from the drop down list.

Is there a way of doing this as soon as a new item is selected from the
drop down box? (I'm trying to mimic a rich client interface in a web
browser).

Feb 6 '06 #1
5 3070
E.T. Grey wrote:
I have a form that is populated with a drop down list and a list box. I
want to be able to automatically populate the list box, whenever a user
selects a new item from the drop down list.

Is there a way of doing this as soon as a new item is selected from the
drop down box? (I'm trying to mimic a rich client interface in a web
browser).

google javascript cascade select

-david-

Feb 6 '06 #2


David Haynes wrote:
E.T. Grey wrote:
I have a form that is populated with a drop down list and a list box.
I want to be able to automatically populate the list box, whenever a
user selects a new item from the drop down list.

Is there a way of doing this as soon as a new item is selected from
the drop down box? (I'm trying to mimic a rich client interface in a
web browser).

google javascript cascade select

-david-


My bad (further clarification required). Is this possible without using
javascript? - i.e. a PHP only solution?

I had to pick up PHP in the last week (I'm from a C/C++/Java background)
and do not really relish the thought of having to learn yet another
'language' for my project ;-)

Feb 6 '06 #3


E.T. Grey wrote:


David Haynes wrote:
E.T. Grey wrote:
I have a form that is populated with a drop down list and a list box.
I want to be able to automatically populate the list box, whenever a
user selects a new item from the drop down list.

Is there a way of doing this as soon as a new item is selected from
the drop down box? (I'm trying to mimic a rich client interface in a
web browser).

google javascript cascade select

-david-


My bad (further clarification required). Is this possible without using
javascript? - i.e. a PHP only solution?

I had to pick up PHP in the last week (I'm from a C/C++/Java background)
and do not really relish the thought of having to learn yet another
'language' for my project ;-)


Ok. I'm a bit slow on the take this morning. I modified the google
search - and came up with some good examples. thanks David

Feb 6 '06 #4
E.T. Grey wrote:


David Haynes wrote:
E.T. Grey wrote:
I have a form that is populated with a drop down list and a list box.
I want to be able to automatically populate the list box, whenever a
user selects a new item from the drop down list.

Is there a way of doing this as soon as a new item is selected from
the drop down box? (I'm trying to mimic a rich client interface in a
web browser).

google javascript cascade select

-david-


My bad (further clarification required). Is this possible without using
javascript? - i.e. a PHP only solution?

I had to pick up PHP in the last week (I'm from a C/C++/Java background)
and do not really relish the thought of having to learn yet another
'language' for my project ;-)


David,

No, there's no way to do it automatically without javascript. PHP is
server-side. It generates the HTML which is sent to the browser, but
then it's work is done.

What you need is something which runs on the browser side to submit your
form back to the server when they user makes a selection - hence,
javascript.

Also, ensure you have an alternate means (i.e. a submit button) for
those who have javascript turned off.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Feb 6 '06 #5
go here
http://www.dynamicdrive.com/dynamici...omboviewer.htm

On Mon, 6 Feb 2006 14:04:24 +0000 (UTC), "E.T. Grey" <ne****@alpha-centauri.com> wrote:
I have a form that is populated with a drop down list and a list box. I
want to be able to automatically populate the list box, whenever a user
selects a new item from the drop down list.

Is there a way of doing this as soon as a new item is selected from the
drop down box? (I'm trying to mimic a rich client interface in a web
browser).


Feb 10 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Greg Scharlemann | last post: by
4 posts views Thread by TycoonUK | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.