Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>NodeServer: strona testowa</title>
- <script>
- </script>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
- <script>
- $(document).ready(function(){
- $("input").keyup(function(){
- var txt = $("input").val();
- $.post("http://150.254.76.84:3001",{message:txt, funkcja: "test"} ,function(result){
- $("div").html("Serwer 1: " + result);
- }, "text");
- });
- });
- </script>
- </head>
- <body>
- <p>Wpisz coÅ› ;)</p>
- <input type="text" name="tekst"/>
- <div></div>
- <span></span>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement