This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="keywords" content=""> | |
<meta name="description" content=""> | |
<title></title> | |
<link type="text/css" rel="stylesheet" href=""> | |
<script type="text/javascript" src=""></script> |
This file contains 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
var page = require('webpage').create(); | |
page.open('http://www.website.com/', function (status) { | |
if (status === 'success') { | |
captureAjaxResponsesToConsole(); | |
} | |
}); | |
function captureAjaxResponsesToConsole() { | |
// logs ajax response contents to console so sublime's onConsoleMessage can use the contents |