This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 15th, 2012  |  syntax: None  |  size: 0.41 KB  |  views: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <form target="_blank" action="www.websiteipostto.com" method="POST">
  2.        
  3. // You bind event handler to the form submit
  4. $('form#name').submit(function () {
  5.   $.ajax({
  6.     type: "POST",
  7.     url: "www.websiteipostto.com",
  8.     success: function (data) {
  9.       $.parseXML(data)
  10.       //There you perform you action on the XML-format data.    
  11.     }
  12.   });
  13.  
  14.   //Cancel the default redirecting action
  15.  
  16.   return false;
  17.  
  18. });
clone this paste RAW Paste Data