EasyUI Forum

General Category => General Discussion => Topic started by: catpaw on May 16, 2015, 11:40:19 AM



Title: combobox reload does not work
Post by: catpaw on May 16, 2015, 11:40:19 AM
hi, strange situation.

I have two combobox, I want to make dependent the second:

Code:
                comboxbox1: 
                <input class="easyui-combobox" name="one" id="one" data-options="
                    width:180,
                    valueField:'key',
                    textField:'name',
                    url:'source/getOne.php',
                    value:'YZ',
                    queryParams:{
                        key:'YZ'
                    },
                    onSelect: function(rec){
                     var url = 'source/getTwo.php?key='+rec.key;
                        $('#two').combobox('reload',url);
                    }">
                comboxbox2:
                <input class="easyui-combobox" name="two" id="two" data-options="
                    width:150,
                    valueField:'clv',
                    textField:'name',
                    url:'source/getTwo.php',
                    value:'0',
                    queryParams:{
                        key: $('#one').combobox('getValue')
                    }">


when I select the one, the two did not do anything.

followed the example of the documentation, I do not understand it does not work

help please!


Title: Re: combobox reload does not work
Post by: jarry on May 17, 2015, 03:13:03 AM
Please open your browser's debug tool, switch to the network panel and check it carefully to see if the post(source/getTwo.php) has been sent to the server successfully.


Title: Re: combobox reload does not work
Post by: catpaw on May 21, 2015, 12:42:41 PM
thank you

I found that the problem was queryParams in the combobox 2

thank for your tip