Guest User

Untitled

a guest
Jun 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. $('form').submit(function (e) {
  2. e.preventDefault();
  3. var json = JSON.stringify($('#subForm').serializeJSON());
  4. console.log(json);
  5.  
  6. $.ajax({
  7. url: 'https://pub.s6.exacttarget.com/hpwryj1b4qc',
  8. type: 'POST',
  9. data: json,
  10. contentType: "application/json",
  11. success: function(json){
  12. console.log(json);
  13. },
  14. error: function( jqXhr, textStatus, errorThrown ){
  15. console.log( errorThrown );
  16. }
  17. });
  18. });
  19.  
  20. DATA POSTED SUCCESSFULLY
  21.  
  22.  
  23.  
  24. <script>(function(a,m,i,g,o,s){o=a.createElement(g);s=a.getElementsByTagName(i)[0];o.src=m.origin+m.pathname+"/_t?eventType=CLOUDPAGESVISIT";o.width=0;o.height=0;o.style.display="none";s.appendChild(o);})(document,window.location,"body","img");</script>
  25. <script src="https:&#x2F;&#x2F;*orgid*.collect.igodigital.com&#x2F;collect.js"></script>
  26. <script>
  27. if (_etmc && typeof _etmc.push === 'function') {
  28. _etmc.push(['setOrgId', '*orgid*']);
  29. _etmc.push(['trackPageView']);
  30. }
  31. </script>
  32.  
  33. {"Email":"*myemail*","SoB_001":"false","SoB_002":"false","SoA_001":"false","SoA_002":"false","SoA_003":"false"}
Add Comment
Please, Sign In to add comment