Skip to content

Commit 99f7bb5

Browse files
committed
display results in a new browser window
1 parent 0f3f61e commit 99f7bb5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/public/js/app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,15 @@ scriptsApp.controller('ScriptsController', function($scope, $http){
3838

3939
}).success(function(data, status){
4040
console.log(status, data);
41+
// load the results into a new window
42+
// TODO: view the results in a panel or table in the current page
43+
var resultsWindow = window.open()
44+
resultsWindow.document.write(data);
4145
}).error(function(data, status){
4246
console.error(status, data);
47+
// load the error into a new window (helps with debugging)
48+
var resultsWindow = window.open()
49+
resultsWindow.document.write(data);
4350
});
4451
};
4552

0 commit comments

Comments
 (0)