Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Norm on Oct 19, 2007 11:27
open dhtmlx forum
Can't carry default comboBox value over into $_POST variable

I still can't seem to get a default value to pass as a PHP $_POST variable. It won't carry over unless manually re-entered (typed).

The initial load works great when entering new records. But when attempting to retrieve a record to edit, for example:

<div id="sw0" style="width:200px;"></div>
<script>
           var v = new dhtmlXCombo("sw0","sw[]",200);
           v.selectOption('Edit Value');
           v.setComboText('Edit Value');
           v.enableFilteringMode(true,"sw.php",true,true);
 </script>

It displays OK in the combobox, but never carries over when submitting via POST method.

Can you help? Please?

Answer posted on Oct 22, 2007 02:51
Unfrtunately the problem can't be recontstructed locally, if div tag used as container for combobox is inside form - value of combobox must be included in send data.
If problem still occurs for you - please try to use attached version of dhtmlxCombo - this is latest version with all fixes included.
Attachments (1)