fnReloadAjax doesn't Send Post Data
fnReloadAjax doesn't Send Post Data
Hello master,
I just want to share my problem with fnReloadAjax.
I use fnReloadAjax to refresh dataTable when I've finished update a record via ajax.
But, there is something error - like wrong data- that showed in datatable (my last edited record not showed)
I use "Network Monitor"feature in Chrome to view HTTP reqest that sent by dataTable. There is something difference between Http request of datatable initialization and fnReloadAjax.
Http Request of Datatable initialization have a post data that sent to the server, but fnReloadAjax sent nothing.
This is the Post Data that sent via http request of Datatable Initialization :
[code]
Request URL:http://xxxxxxxxxxxx-edited
Request Method:POST
Status Code:200 OK
#Request Headers :
Accept:application/json, text/javascript, */*; q=0.01
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,id-ID;q=0.8,id;q=0.6,en;q=0.4
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:1870
Content-Type:application/x-www-form-urlencoded
Cookie:KBD=0en-0; ci_session=XXX-Edited
Host:localhost
Origin:http://localhost
Referer:xxx-edited
User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30
X-Requested-With:XMLHttpRequest
#Form Data :
sEcho:1
iColumns:27
sColumns:
iDisplayStart:0
iDisplayLength:10
sSearch:
bRegex:false
sSearch_0:
bRegex_0:false
bSearchable_0:true
sSearch_1:
bRegex_1:false
bSearchable_1:true
sSearch_2:
bRegex_2:false
bSearchable_2:true
sSearch_3:
bRegex_3:false
bSearchable_3:true
sSearch_4:
bRegex_4:false
bSearchable_4:true
sSearch_5:
bRegex_5:false
bSearchable_5:true
sSearch_6:
bRegex_6:false
bSearchable_6:true
sSearch_7:
bRegex_7:false
bSearchable_7:true
sSearch_8:
bRegex_8:false
bSearchable_8:true
sSearch_9:
bRegex_9:false
bSearchable_9:true
sSearch_10:
bRegex_10:false
bSearchable_10:true
sSearch_11:
bRegex_11:false
bSearchable_11:true
sSearch_12:
bRegex_12:false
bSearchable_12:true
sSearch_13:
bRegex_13:false
bSearchable_13:true
sSearch_14:
bRegex_14:false
bSearchable_14:true
sSearch_15:
bRegex_15:false
bSearchable_15:true
sSearch_16:
bRegex_16:false
bSearchable_16:true
sSearch_17:
bRegex_17:false
bSearchable_17:true
sSearch_18:
bRegex_18:false
bSearchable_18:true
sSearch_19:
bRegex_19:false
bSearchable_19:true
sSearch_20:
bRegex_20:false
bSearchable_20:true
sSearch_21:
bRegex_21:false
bSearchable_21:true
sSearch_22:
bRegex_22:false
bSearchable_22:true
sSearch_23:
bRegex_23:false
bSearchable_23:true
sSearch_24:
bRegex_24:false
bSearchable_24:true
sSearch_25:
bRegex_25:false
bSearchable_25:true
sSearch_26:
bRegex_26:false
bSearchable_26:true
iSortingCols:1
iSortCol_0:0
sSortDir_0:asc
bSortable_0:true
bSortable_1:true
bSortable_2:true
bSortable_3:true
bSortable_4:true
bSortable_5:true
bSortable_6:true
bSortable_7:true
bSortable_8:true
bSortable_9:true
bSortable_10:true
bSortable_11:true
bSortable_12:true
bSortable_13:true
bSortable_14:true
bSortable_15:true
bSortable_16:true
bSortable_17:true
bSortable_18:true
bSortable_19:true
bSortable_20:true
bSortable_21:true
bSortable_22:true
bSortable_23:true
bSortable_24:true
bSortable_25:true
bSortable_26:true
[/code]
Any idea?
I just want to share my problem with fnReloadAjax.
I use fnReloadAjax to refresh dataTable when I've finished update a record via ajax.
But, there is something error - like wrong data- that showed in datatable (my last edited record not showed)
I use "Network Monitor"feature in Chrome to view HTTP reqest that sent by dataTable. There is something difference between Http request of datatable initialization and fnReloadAjax.
Http Request of Datatable initialization have a post data that sent to the server, but fnReloadAjax sent nothing.
This is the Post Data that sent via http request of Datatable Initialization :
[code]
Request URL:http://xxxxxxxxxxxx-edited
Request Method:POST
Status Code:200 OK
#Request Headers :
Accept:application/json, text/javascript, */*; q=0.01
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,id-ID;q=0.8,id;q=0.6,en;q=0.4
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:1870
Content-Type:application/x-www-form-urlencoded
Cookie:KBD=0en-0; ci_session=XXX-Edited
Host:localhost
Origin:http://localhost
Referer:xxx-edited
User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30
X-Requested-With:XMLHttpRequest
#Form Data :
sEcho:1
iColumns:27
sColumns:
iDisplayStart:0
iDisplayLength:10
sSearch:
bRegex:false
sSearch_0:
bRegex_0:false
bSearchable_0:true
sSearch_1:
bRegex_1:false
bSearchable_1:true
sSearch_2:
bRegex_2:false
bSearchable_2:true
sSearch_3:
bRegex_3:false
bSearchable_3:true
sSearch_4:
bRegex_4:false
bSearchable_4:true
sSearch_5:
bRegex_5:false
bSearchable_5:true
sSearch_6:
bRegex_6:false
bSearchable_6:true
sSearch_7:
bRegex_7:false
bSearchable_7:true
sSearch_8:
bRegex_8:false
bSearchable_8:true
sSearch_9:
bRegex_9:false
bSearchable_9:true
sSearch_10:
bRegex_10:false
bSearchable_10:true
sSearch_11:
bRegex_11:false
bSearchable_11:true
sSearch_12:
bRegex_12:false
bSearchable_12:true
sSearch_13:
bRegex_13:false
bSearchable_13:true
sSearch_14:
bRegex_14:false
bSearchable_14:true
sSearch_15:
bRegex_15:false
bSearchable_15:true
sSearch_16:
bRegex_16:false
bSearchable_16:true
sSearch_17:
bRegex_17:false
bSearchable_17:true
sSearch_18:
bRegex_18:false
bSearchable_18:true
sSearch_19:
bRegex_19:false
bSearchable_19:true
sSearch_20:
bRegex_20:false
bSearchable_20:true
sSearch_21:
bRegex_21:false
bSearchable_21:true
sSearch_22:
bRegex_22:false
bSearchable_22:true
sSearch_23:
bRegex_23:false
bSearchable_23:true
sSearch_24:
bRegex_24:false
bSearchable_24:true
sSearch_25:
bRegex_25:false
bSearchable_25:true
sSearch_26:
bRegex_26:false
bSearchable_26:true
iSortingCols:1
iSortCol_0:0
sSortDir_0:asc
bSortable_0:true
bSortable_1:true
bSortable_2:true
bSortable_3:true
bSortable_4:true
bSortable_5:true
bSortable_6:true
bSortable_7:true
bSortable_8:true
bSortable_9:true
bSortable_10:true
bSortable_11:true
bSortable_12:true
bSortable_13:true
bSortable_14:true
bSortable_15:true
bSortable_16:true
bSortable_17:true
bSortable_18:true
bSortable_19:true
bSortable_20:true
bSortable_21:true
bSortable_22:true
bSortable_23:true
bSortable_24:true
bSortable_25:true
bSortable_26:true
[/code]
Any idea?
This discussion has been closed.