Skip to content

Instantly share code, notes, and snippets.

@pingles
Created June 23, 2011 13:29
Show Gist options
  • Save pingles/1042530 to your computer and use it in GitHub Desktop.
Save pingles/1042530 to your computer and use it in GitHub Desktop.
$(".switch form").submit(function() {
$("").interstitial('open', {
'url' : '/gas-electricity/moving-home/completing-your-switch/?' + $(this).serialize()
});
$.ajax({
type: "POST",
url: $(this).attr("action"),
data: $(this).serialize(),
error: function(jq, textStatus, errorThrown) {
console.log(jq.getAllResponseHeaders());
// console.log(textStatus);
// console.log(errorThrown);
}
});
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment