redirect - Using TypeScript how to read the text from a URL -
i have website manager homecoming me different url server client should connect too.
so in typescript function resolve first url, read text, , open in new window. right can open website manager window bellow code.
var awindow = window.open("http://azureredirect.net/home/workspace/" + this.workspace.id, "window", ""); if (awindow) { awindow.focus(); }
what want next webclient line not work(this c# version of do)
var url = webclient.open("http://azurejupyterredirect.net/home/workspace/" + this.workspace.id").tostring(); var awindow = window.open(url, "jupy", ""); if (awindow) { awindow.focus(); }
here's illustration of how this:
class="snippet-code-js lang-js prettyprint-override">$(document).ready(function() { var workspaceid = '2'; $.ajax('http://azurejupyterredirect.net/home/workspace/' + workspaceid) .then( function(url) { window.open(url); }); });
class="snippet-code-html lang-html prettyprint-override"><script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
redirect typescript
No comments:
Post a Comment