Z
Z
zasqer2014-02-12 22:57:04
JavaScript
zasqer, 2014-02-12 22:57:04

Is it possible to use the $.ajax() function on the node.js side?

I'm looking at node.js and the following question arose:
As far as I understand, it is possible to connect jQuery as a module: Is it possible to send a request using $.ajax() ? Not process it on node.js, namely send it? Now when I try to call $.ajax() I get the following error:
var $ = require('jquery')

jQuery requires a window with a document

which, in principle, is logical, because there is no window on node.js.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vit, 2014-02-12
@zasqer

No, node.js has its own tools for this nodejs.org/api/http.html#http_http_request_options...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question