|
Title: [SOLVED] datagrid with get method set cookie Post by: Coder on March 29, 2021, 06:05:31 AM Hi!
how to enable set cookie in datagrid (withCredentials:true in ajax request) ? Code: <table id="dg" noheader="true" fit="true" class="easyui-datagrid" basic ajax will be: Code: jQuery.ajax({Title: Re: datagrid with get method set cookie Post by: jarry on March 29, 2021, 07:18:16 PM The simplest way to solve this issue is to setup the parameters globally.
Code: $.ajaxSetup({crossDomain: true, xhrFields: {withCredentials: true}});You also can override the default loader function of the datagrid component. Code: $.extend($.fn.datagrid.defaults, {Title: Re: [SOLVED] datagrid with get method set cookie Post by: Coder on March 29, 2021, 07:22:54 PM Thnx!
|