EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: heru on July 16, 2012, 11:38:56 PM



Title: using GET instead of POST
Post by: heru on July 16, 2012, 11:38:56 PM
Hello all,

please tell me how to change ajax request method in datagrid, combogrid  from POST to GET ?

Thankyou

heru -- indonesia


Title: Re: using GET instead of POST
Post by: tomhj on July 17, 2012, 09:23:22 AM
set the "method" property on the datagrid for "get" instead of the default "post".

But why do you want to do that?  It could cause problems with the browser caching your data so your grid gets stale data instead of fresh data from your back end?


Title: Re: using GET instead of POST
Post by: heru on July 17, 2012, 08:58:19 PM
hi tomhj,

Thankyou for feedback, i'm using django (python ) for the server side processing.. since CSRF protection in Django is restricted POST data using csrf token...

heru