Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by David on Sep 24, 2008 14:45
open dhtmlx forum
dhtmlXCombo GET Server variable problem

Hello,
I use dhtmlXCombo in a form and when i send my form with GET METHOD I get value of my dhtmlXCombo but text is not display in dhtmlXCombox
Thanks to say me how can i do it?
Answer posted by dhtmlx support on Sep 26, 2008 05:25
Probably you reload the page when form is submitted.

You can save selected value before submitting and restore it after page loading:

    var value = combo.getActualValue();

Or you can try to submit form using the approach  like in the sample:
dhtmlxCombo/samples/actions/combo_save.html
( http://www.dhtmlx.com/docs/products/dhtmlxCombo/samples/actions/combo_save.html )


Answer posted by David on Sep 26, 2008 06:57
Thank you for your answer.
Finaly i found setComboValue et setCombox text and it's work !
With get $_GET values in php and use those functions with the value.