Mercurial > bottledash
comparison views/bottledash_view.tpl @ 23:f63737665ac5
fixed an URL rediretion problem
author | sean |
---|---|
date | Thu, 13 Aug 2015 13:14:00 +0200 |
parents | 3dfa9ed1dd8b |
children | 7d431b779512 |
comparison
equal
deleted
inserted
replaced
22:3dfa9ed1dd8b | 23:f63737665ac5 |
---|---|
129 | 129 |
130 //check current state of an IP | 130 //check current state of an IP |
131 function check_server_state(ip){ | 131 function check_server_state(ip){ |
132 var request = new XMLHttpRequest(); | 132 var request = new XMLHttpRequest(); |
133 var params = "service=" + ip; | 133 var params = "service=" + ip; |
134 request.open('POST', "http://localhost:8080/ask-systemstate", false); | 134 request.open('POST', window.location.href + "ask-systemstate", false); |
135 request.send(params); | 135 request.send(params); |
136 // console.log(request.responseText); | 136 // console.log(request.responseText); |
137 return request.responseText | 137 return request.responseText |
138 } | 138 } |
139 | 139 |