Created
April 15, 2013 04:40
-
-
Save francisbrito/5385743 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DOM (JavaScript) | |
// Ganchos: Para que funcione debe de ser ejecutado desde http://emplea.do | |
// ******** Esto se debe a restrinciones de seguridad en los navegadores. | |
var request = new XMLHttpRequest(); | |
var url = 'http://www.emplea.do/jobs.json'; | |
request.open('GET', url); | |
request.onreadystatechange = function(){ | |
if(request.readyState == request.DONE){ | |
console.log(request.responseText); | |
} | |
}; | |
request.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment