Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    One more suggestion!

    Add http request header "X-Requested-With" with value "XMLHttpRequest" for datasets and dynamic forms to know on server that request AJAX client.
    May be when dataset's transport is "RPCTransport.XMLHTTPREQUEST".


    Example:
    Code:
    public Object transformRequest(DSRequest dsRequest){
            
            Map<String, String> headers = new HashMap<String, String>();
            headers.put("X-Requested-With", "XMLHttpRequest");
    
            dsRequest.setHttpHeaders(headers);
    	return super.transformRequest(dsRequest);
    
    }
    P.S. just most AJAX frameworks do it.
Working...
X