EasyUI Forum
May 14, 2024, 06:19:06 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 won't the demos load the json data on my server  (Read 17728 times)
cspeerly
Newbie
*
Posts: 7


View Profile Email
« 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
« Last Edit: September 08, 2012, 01:18:53 PM by cspeerly » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


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