piffy

AJAX con POST (parte HTML)

Aug 13th, 2015
363
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html><head>
  2. <title>Esempio di AJAX - POST</title>
  3. <script src="ajax2.js"></script>
  4. </head><body>
  5. <h1>Esempio di AJAX - POST</h1>
  6. <p> Inserisci il nome utente (quello giusto &egrave; 'Pippo') e premi 'Controlla'<p>
  7. <form>
  8.     <label for="userid">User ID :</label>
  9.     <input type="text" name ="userid" id="userid" onblur="PostData()" />
  10.     <div id="div1"></div>
  11.     <input type="button" value ="Controlla" onclick="PostData()" />
  12. </form>
  13. </body></html>
RAW Paste Data