EasyUI Forum
June 16, 2024, 03:55:29 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: using GET instead of POST  (Read 9920 times)
heru
Newbie
*
Posts: 12


View Profile
« 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
Logged
tomhj
Newbie
*
Posts: 40


View Profile
« Reply #1 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?
Logged
heru
Newbie
*
Posts: 12


View Profile
« Reply #2 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
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!