Sunday, 12 March 2017

Simple JQUERY data retrieving not working

I'm working with nodeJS 6, jQuery and JSDOM. These simple lines of code don't display a thing in the console, whereas they should :

var jsdom = require("jsdom").jsdom;
var doc = jsdom();
var window = doc.defaultView;
var $ = require('jquery')(window);

$.get('http://racknet.noip.me/a.php', function( data, status ) {
            console.log(status);
            console.log("anything");
        });

This means the callback function isn't trigerred. Why that ?



via Rackover

No comments:

Post a Comment