

Nextrek
@ 467
Nextrek / Android / SmartCharging / endPoints / nightly / examples / edit_utente.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
<html> <head> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script> </head> <body> <form id="submit"> ID Utente:<br> <input type="text" name="user_id"> <br> Nominativo:<br> <input type="text" name="nominativo"> <br> Cellulare:<br> <input type="text" name="cell"> <br> Email:<br> <input type="text" name="email"> <br> <input type="submit" value="Lancia!"> </form> <br> <div id="output"></div> <script> $(document).ready(function() { $("#submit").submit(function(e) { e.preventDefault(); var user_id = $("#submit input[name='user_id']").val(); var nominativo = $("#submit input[name='nominativo']").val(); var cell = $("#submit input[name='cell']").val(); var email = $("#submit input[name='email']").val(); var params = { user_id: user_id, nominativo: nominativo, cell: cell, email: email } params = JSON.stringify(params); function ajaxResEditUser(data) { var json_output = JSON.stringify(data); $("#output").append(json_output); } $.ajax({ url: "../edit_utente.php", success: ajaxResEditUser, method: "POST", data: params }); }) }) </script> </body> </html> |
Commits for Nextrek/Android/SmartCharging/endPoints/nightly/examples/edit_utente.html
Revision | Author | Commited | Message |
---|---|---|---|
467 |
![]() |
Mon 03 Aug, 2015 13:36:12 +0000 | edit_locale.php e edit_utente.php |