1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
$.ajax({ type: "POST", url: "root/to/file.php", data: dataString, success: function() { $('#addshipping').hide(); $('#success').fadeIn(1000,function() { parent.$.fancybox.close(); }); } })
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14:
$.ajax({ type: "POST", url: "root/to/file.php", data: dataString, success: function(data) { alert(data); $('#addshipping').hide(); $('#success').fadeIn(1000,function() { parent.$.fancybox.close(); }); } })