Closed oniwo closed 8 years ago
Does this not work for you on CJAX 5.9 RC4 specifically, or it doesnt work on other versions either? To my understanding, CJAX's property manipulation API cannot modify certain properties, such as 'class'.
Thanks for reporting,
this seems like an option that should work.
Will add support to any of these options that don't work. Please let me know if you find anymore.
Just tried it, and it seemed to work:
I used this example to test on: http://cjax.sourceforge.net/examples/propagate_dropdown.php
On controller, method: propagate(), at the bottom after: $ajax->select('dropdown2',$data); File: examples/controllers/dropdown.php
Added: ...... after: $ajax->select('dropdown2',$data);
$ajax->dropdown2 = array('selectedIndex'=> 3);
$ajax->wait(3);
$ajax->dropdown2 = array('selectedIndex'=> 1);
$ajax->wait(3);
$ajax->dropdown2 = array('selectedIndex'=> -1);
The test passed, and it worked.
Please let me know the conditions you tested on, as this seems to be working.
RC 5 is already out: https://github.com/ajaxboy/cjax/releases/tag/5.9RC5 Let me know if you find any issues.
@oniwo Are you able to replicate this issue still ?
No, the issue is gone. Thanks.
Property manipulation not working for me. $ajax->optionList = array('selectedIndex'=>-1); does not deselect the list. The first item in the list remains selected.