Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getWSprice() {
- var xmlHttp;
- if (window.XMLHttpRequest){
- xmlHttp=new XMLHttpRequest();
- xmlHttp["timeout"] = 3;
- }
- var urlDir = "http://localhost:8000/asset/ws";
- xmlHttp.open("GET", urlDir, true);
- xmlHttp.send();
- console.log(xmlHttp.response)
- wsPrices = JSON.parse(xmlHttp.response);
- console.log(wsPrices)
- return wsPrices;
- }
Advertisement
Add Comment
Please, Sign In to add comment