470,833 Members | 1,346 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Javascript and the combobox printing

Hi,

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

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 2 '08 #1
1 1092
Mtek a écrit :
without a page refresh.
Refer to the previous answers.

According those few words, nothing can be done with PHP which is server
side, while an action without any refresh is "client-sided" (thus
JavaScript).

Regards,
--
Guillaume
Jun 2 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Guillem | last post: by
2 posts views Thread by Rob McLennan - ZETLAND | last post: by
8 posts views Thread by Rob McLennan - ZETLAND | last post: by
8 posts views Thread by Gregory A Greenman | last post: by
3 posts views Thread by Jlcarroll | 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.