Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raghu on Aug 06, 2009 03:33
open dhtmlx forum
Grid

Hi,

How to set the request header for the dhtmlx ajax requests? i.e

mygrid.load(src);


I need to set the Accept header to "text/javascript" because by doing so when the server side session expires i send window.location.href = '/session/new' in response. Which will automatically take the page to login page when the session expires.
Answer posted by Support on Aug 07, 2009 07:17
It not possible, component doesn't allow to add extra headers to AJAX requests.
( even if it was possible, direct output of js command will not have any effect, because component expects to receive an xml , and will not be able to process incoming js code in the correct way )