Skip to content

Instantly share code, notes, and snippets.

@SidneyAllen
Created December 14, 2011 17:03
Show Gist options
  • Save SidneyAllen/1477466 to your computer and use it in GitHub Desktop.
Save SidneyAllen/1477466 to your computer and use it in GitHub Desktop.
jqm-cf-subscribe-03
$('#subscribe').live('click',function(e)
{
$.mobile.showPageLoadingMsg();
$.ajax({
url: 'subscriptions.cfc',
data: 'method=setExpressCheckout',
success: function(data){
var obj = $.parseJSON(data);
window.location = obj['redirecturl']
},
error: function(request, textStatus, error){
$.mobile.hidePageLoadingMsg();
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment