Forum Moderators: coopster

Message Too Old, No Replies

select menu onChange to update text boxes

         

smagdy

10:42 am on Apr 28, 2005 (gmt 0)

10+ Year Member



Hi, Ive a select menu filled from mySql, So when I change the selection.. I want to change 3 text boxes also by the same row of database that is = to the row of the select menu.

So i tried a lot but failed.. cuz I cant send to javascript the updated values when the selected menu change..

Please help..

Thanks in advance

ironik

10:02 pm on Apr 28, 2005 (gmt 0)

10+ Year Member



Without reloading the page there are a couple of ways around it.

One is to pre-populate javascript arrays from PHP, that way when a select item is chosen javascript already has the values to use.

Another is to use some sort of dynamic interaction with javascript from server side code. Look up XMLHttpRequest and/or XUL to achieve something like this (can get pretty involved).