Is it possible to use jQuery.ajax() in node.js exactly as it is syntax-wise?
I am trying to share non-UI browser code with node.js. I do not want to replace all the existing function calls with my own wrapper.
Currently when I try it, it would say “No Transport” by default because jQuery does domain detection. If I turn it off by setting jQuery.support.cors it would say XMLHttpRequest.open() not available.
I was able to solve the “No Transport” issue using the XMLHttpRequest module, like this: