Topic: Problem with <select multiple>
Hello,
I have the following code:
<form name="ano_frm" id="ano_frm" onsubmit="xajax_saveData(xajax.getFormValues('ano_frm'));return false;">
<input type="text" name="aname" id="aname" />
<select name="ausers" id="ausers" multiple="multiple">
<option value="1">John</option>
<option value="1">John</option>
<option value="1">John</option>
</select>
<input type="submit" value=" Save " />
</form>
... and for the xajax:
function saveData($args) {
$objResponse = new xajaxResponse();
$objResponse->alert(print_r($args,true));
return $objResponse;
}
What I get:
Array
(
[aname] => Whatever
[ausers] => Array
)
No matter how many options I select I always get "Array" as the <select> value.
I also tried <select name="ausers[]"> with no success.
Is this a known bug? Is there any workaround on this problem?
I'm using xajax 0.5 standard.
<edit>
It seems that checkbox's don't work either. Tried in IE 8 and FF 3.5.7
Also I just downloaded xajax 0.5 Minimal and compiled but no success....
</edit>
Thank you,
__
KVron
Last edited by KVron (2010-01-19 5:38:36 AM)