Can I specify a data type in a jsTree ajax call?

I need to specify dataType: 'jsonp' when making a jsTree ajax call.

Can I do it? I did not find anything in the jsTree website.

+2
source share
2 answers

Yes, you can. Like, just plain dataType: "jsonp". You can specify the callback specified in this.

This will help you understand how jquery handles jsonp.

+1
source

As far as I can see, the jsTree manual states that the ajax configuration object is the same as jQuery, so the dataType property should work fine.

0
source

All Articles