Page 1 of 1

need help with dynamic update of combo boxes

Posted: Thu Jun 10, 2004 7:37 pm
by HormonX
I need some serious help with this :) What i need to accomplish is to dynamicaly update a second pull-down list box after a selection has been made in the first box. I know that this probably will require a JS to interact with PHP but i do not know JS to even begin this. Does anyone have any suggestion and can help me with this.

thank you

Greg

Posted: Thu Jun 10, 2004 7:50 pm
by dull1554
as far as i know, which ill admit is not all that much, but i dont think JS(a client side language) can interact with PHP(a serverside language), that is unless you want to use JS to refresh the page when the selection is changed

Posted: Thu Jun 10, 2004 8:15 pm
by John Cartwright
Correct Dull,

this would have to include a refresh because php is parsed and then displayed. period. and then waits for the next reload. :)

Posted: Thu Jun 10, 2004 8:19 pm
by dull1554
he could though build a multidemensional array in JS that would dynamically update the valuse in the combo boxes with a little work with JS

Posted: Thu Jun 10, 2004 9:12 pm
by HormonX
I have had few examples of JavaScript with combo boxes but since my knowledge of it is very .. very limited i had trouble integrating php into JavaScript.

Posted: Fri Jun 11, 2004 9:09 am
by Grim...
I did it once without a page refresh but it was horrifically difficult (and pretty slow), so I'd advise going for a page refresh.