SHARE
TWEET

Untitled

a guest Nov 15th, 2012 21 Never
  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. });
RAW Paste Data
Top