EasyUI Forum
September 13, 2025, 06:23:35 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Why sometimes Combobox fail to load json (remote data)  (Read 9235 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« 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..??  Huh 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
« Last Edit: October 12, 2014, 11:47:57 PM by Agus Sigit Wisnubroto » Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 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'
});
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!