Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > How to re-print...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 35484 of 36378
Post > Topic >>

How to re-print values from combobox selection

by Mtek <mtek@[EMAIL PROTECTED] > May 5, 2008 at 08:42 AM

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?

The HTML table is within a DIV.  Someone suggested using innerHTML.
But I cannot see how to re-display the entire DIV, with new values
from the combobox selection, without refre****ng the page......this
seems impossible.

John.
 




 6 Posts in Topic:
How to re-print values from combobox selection
Mtek <mtek@[EMAIL PROT  2008-05-05 08:42:45 
Re: How to re-print values from combobox selection
Ugo <privacy@[EMAIL PR  2008-05-05 18:10:47 
Re: How to re-print values from combobox selection
Mtek <mtek@[EMAIL PROT  2008-05-05 09:16:22 
Re: How to re-print values from combobox selection
Ugo <privacy@[EMAIL PR  2008-05-05 18:30:11 
Re: How to re-print values from combobox selection
Mtek <mtek@[EMAIL PROT  2008-05-05 09:35:50 
Re: How to re-print values from combobox selection
Ugo <privacy@[EMAIL PR  2008-05-05 23:43:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:52:25 CDT 2008.