PDA

View Full Version : Any way to modify request headers for TreeLoader?



dbassett74
1 Jul 2010, 1:51 PM
The reason I ask is that ASP.NET requires that Content-Type: "application/json" to be set if you want the web service to return a JSON serialized response. I couldn't figure out how to modify the request headers. Any help would be appreciated.

Condor
2 Jul 2010, 1:08 AM
You'll have to override TreeLoader.requestData to send the params as 'jsonData' instead of 'params'.

(instead of overriding you could also specify a directFn and do your own request)

dbassett74
2 Jul 2010, 12:35 PM
Perfect, thanks!