By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,448 Members | 934 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,448 IT Pros & Developers. It's quick & easy.

Javascript and the combobox printing issue

P: n/a
Hi,

We have a combo box on our page, which gets populated via a MySQL
Query in PHP.

What we want to do is to print the values on the page in a table that
correspond the to selection from the combo box without a page refresh.

I assume that I'll need to query ALL the needed values from the
database and store them in an array This can be done in PHP. Drawing
the combo box is not a problem. But, once a selection is made, how do
I print the values to the page?

I'm assuming an 'on change' events needs to be attached to the box,
but, it is not a form, so, there would not be any submit to the
server. How do we print the values from the selection made? Would it
have to be javascript rather than PHP, or a function that is called?

John.
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On May 5, 9:53 am, Mtek <m...@mtekusa.comwrote:
Hi,

We have a combo box on our page, which gets populated via a MySQL
Query in PHP.

What we want to do is to print the values on the page in a table that
correspond the to selection from the combo box without a page refresh.

I assume that I'll need to query ALL the needed values from the
database and store them in an array This can be done in PHP. Drawing
the combo box is not a problem. But, once a selection is made, how do
I print the values to the page?

I'm assuming an 'on change' events needs to be attached to the box,
but, it is not a form, so, there would not be any submit to the
server. How do we print the values from the selection made? Would it
have to be javascript rather than PHP, or a function that is called?

John.
Follow up:

Well, someone just suggested something called inner html......I'll
have to look that up.

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.