EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on October 12, 2014, 08:45:53 PM



Title: Why sometimes Combobox fail to load json (remote data)
Post by: aswzen on October 12, 2014, 08:45:53 PM
I have a form with 18 combobox..all of them populated by json (remote data)..
when the page rendered, sometimes combobox fail to fetch the json and make the combobox appear as empty..
and i have to reload the form again and again until the form combobox rendered properly..

why this is happened..??  ??? is there any solution just like if the json fail to load data then make it reload..or what?
  • i ran the webapp locally
  • the json links were fine but all the data are heavily parsed (about 50+ items)..
  • the combobox were unique each other ..
  • the form was very lightweight..
  • jEasyui 1.4

thanks in advance


Title: Re: Why sometimes Combobox fail to load json (remote data)
Post by: jarry on October 13, 2014, 12:21:41 AM
Please try to set the 'method' to 'get' for your combobox.
Code:
$('#cc').combobox({
  url: 'data.json',
  method: 'get'
});