Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. <div class="dog">
  2. <div class="dog_wrapper clearfix">
  3. <div class="col-lg-6 col-md-6 col-sm-6 left_sec">
  4. <div class="panel-heading">LIVE</div>
  5. <div class="col-md-6 col-sm-6">
  6. <div class="livefeed-left">
  7. <form class="button" method="post">
  8. <input type="hidden" value="DEPLOY" id="fieldID" name="fieldName"/>
  9. <input type="submit" value="Raise"/>
  10. </form>
  11. </div>
  12. </div>
  13. <div class="col-md-6 col-sm-6">
  14. <div class="livefeed-right">
  15. <form class ="button" method="post">
  16. <input type="hidden" value="RECOVER" id="fieldID" name="fieldName"/>
  17. <input type="submit" value="Lower"/>
  18. </form>
  19. </div>
  20. </div>
  21. </div>
  22.  
  23. <div class="col-lg-6 col-md-6 col-sm-6 right_sec">
  24. <div class="panel-heading" id="sample" style="width: 100%; height:500px">MAP</div>
  25. <div class="col-md-6 col-sm-6">
  26. <div class="livefeed-left">
  27. <form class= "button" action="" method="post">
  28. <input type="hidden" value="UPLOAD" id="fieldID" name="fieldName"/>
  29. <input type="hidden" value="" id="lngHolderID" name="lngHolderName"/>
  30. <input type="hidden" value="" id="latHolderID" name="latHolderName"/>
  31. <input type="hidden" value="" id="altHolderID" name="altHolderName"/>
  32. <input type="hidden" value="" id="actHolderID" name="actHolderName"/>
  33. <input type="hidden" value="" id="actParamHolderID" name="actParamHolderName"/>
  34. <input type="submit" value="Upload" onclick="compileHolder()"/>
  35. </form>
  36. </div>
  37.  
  38. <script type="text/javascript">
  39. $('.button').on('submit', function (event) {
  40. event.preventDefault(); // Stop the form from causing a page refresh.
  41. var data = {
  42. username: $('#username').val(),
  43. password: $('#password').val()
  44. };
  45. $.ajax({
  46. url: 'http://localhost/my/url',
  47. data: data,
  48. method: 'POST'
  49. }).then(function (response) {
  50. // Do stuff with the response, like add it to the page dynamically.
  51. $('body').append(response);
  52. }).catch(function (err) {
  53. console.error(err);
  54. });
  55. });
  56. </script>
  57. </body>
  58.  
  59. </html>
  60.  
  61. $('upload').on('submit', function (event) {
  62. event.preventDefault(); // Stop the form from causing a page refresh.
  63. var data = {
  64. username: $('#username').val(),
  65. password: $('#password').val()
  66. };
  67. $.ajax({
  68. url: 'http://localhost/my/url',
  69. data: data,
  70. method: 'POST'
  71. }).then(function (response)
  72.  
  73. var data = $('#upload').serialize();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement