EasyUI Forum
October 18, 2025, 09:06:15 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: combobox reload does not work  (Read 13489 times)
catpaw
Jr. Member
**
Posts: 85


View Profile Email
« 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!
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 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.
Logged
catpaw
Jr. Member
**
Posts: 85


View Profile Email
« Reply #2 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!