Title: Why won't the demos load the json data on my server Post by: cspeerly on September 08, 2012, 05:07:06 AM I have tried everything I know (which is not much) to get my apps and the EasyUI demo's to work with json data. I am using the download demo's
They work fine if using MySQL. but, not json. Windows XP with IIS with Chrome tools it say POST http://localhost/jqueryEasyUI/cardview/data/datagrid_data.json 405 (Method not allowed) jquery-1.8.0.js:8214 jQuery.ajaxTransport.send jquery-1.8.0.js:8214 jQuery.extend.ajax jquery-1.8.0.js:7766 $.fn.datagrid.defaults.$.extend.loader jquery.easyui.min.js:7958 _527 jquery.easyui.min.js:7366 (anonymous function) WHY? Chuck Title: Re: Why won't the demos load the json data on my server Post by: stworthy on September 09, 2012, 06:15:21 PM The datagrid executes ajax request via post method but IIS can't allow to handle the json static file using POST verb. To solve this issue, change the ajax request method to 'get' for datagrid.
$.fn.datagrid.defaults.method = 'get'; |