Javascript and the combobox printing

This is a discussion on Javascript and the combobox printing within the PHP Language forums, part of the PHP Programming Forums category; Hi, We have a combo box on our page, which gets populated via a MySQL Query. What we want to ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-05-2008
Mtek
 
Posts: n/a
Default 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.
Reply With Quote
  #2 (permalink)  
Old 05-05-2008
Guillaume
 
Posts: n/a
Default Re: Javascript and the combobox printing

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
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 05:29 AM.


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