Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function() {
- if(stop) return;
- try
- {
- var xmlHttp = new XMLHttpRequest();
- xmlHttp.open( ""GET"", ""http://127.0.0.1:8080/get/"", false ); // false for synchronous request
- xmlHttp.send( null );
- if(xmlHttp.responseText.length > 0)
- {
- var values = xmlHttp.responseText.split(' ');
- document.getElementById(""fname"").innerHTML = values[0];
- document.getElementById(""lname"").innerHTML = values[1];
- }
- } catch (err)
- {
- stop = true;
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement