Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('form').submit(function (e) {
- e.preventDefault();
- var json = JSON.stringify($('#subForm').serializeJSON());
- console.log(json);
- $.ajax({
- url: 'https://pub.s6.exacttarget.com/hpwryj1b4qc',
- type: 'POST',
- data: json,
- contentType: "application/json",
- success: function(json){
- console.log(json);
- },
- error: function( jqXhr, textStatus, errorThrown ){
- console.log( errorThrown );
- }
- });
- });
- DATA POSTED SUCCESSFULLY
- <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>
- <script src="https://*orgid*.collect.igodigital.com/collect.js"></script>
- <script>
- if (_etmc && typeof _etmc.push === 'function') {
- _etmc.push(['setOrgId', '*orgid*']);
- _etmc.push(['trackPageView']);
- }
- </script>
- {"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