Guest User

Untitled

a guest
Jan 21st, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. x1=y1&x2=y2
  2.  
  3. { "x1": "y1", "x2": "y2"}
  4.  
  5. <!-- jQuery Version 1.11.0 -->
  6. <script src="js/jquery-1.11.0.js" }}"></script>
  7.  
  8. <!-- Bootstrap Core JavaScript -->
  9. <script src="js/bootstrap.min.js" }}"></script>
  10.  
  11. <!-- Plugin JavaScript -->
  12. <script src="js/jquery.easing.min.js" }}"></script>
  13. <script src="js/classie.js" }}"></script>
  14. <script src="js/cbpAnimatedHeader.js" }}"></script>
  15.  
  16. <!-- Contact Form JavaScript -->
  17. <script src="js/jqBootstrapValidation.js" }}"></script>
  18. <!--
  19. <script src="js/contact_me.js" }}"></script>
  20. -->
  21.  
  22. <!-- Custom Theme JavaScript -->
  23. <script src="js/freelancer.js" }}"></script>
  24.  
  25.  
  26. <form action="" method="post" name="demoform" id="demoform">
  27.  
  28. <input type=hidden name=x1 value=y1 id=x1>
  29. <input type=hidden name=x2 value=y2 id=x2>
  30.  
  31. <input type="button" value="demo" name="button" id="button">
  32.  
  33. </form>
  34.  
  35.  
  36.  
  37. <script>
  38. $.sendRequest = function(form) {
  39. $.ajax({
  40. type: "POST",
  41. url: "http://www.cnn.com",
  42. data: form.serialize(),
  43. dataType: 'application/json',
  44.  
  45. success: function(data, textStatus){
  46. }
  47. });
  48. }
  49.  
  50. $('#button').click(function () {
  51. $.sendRequest($("#demoform"));
  52. });
  53. </script>
Add Comment
Please, Sign In to add comment