Skip to content

Instantly share code, notes, and snippets.

@SidneyAllen
Created December 14, 2011 17:23
Show Gist options
  • Save SidneyAllen/1477535 to your computer and use it in GitHub Desktop.
Save SidneyAllen/1477535 to your computer and use it in GitHub Desktop.
jqm-cf-subscribe-07
$('#confirm').live('click',function(e) {
$.mobile.showPageLoadingMsg();
$.ajax({
url: 'subscriptions.cfc',
data: 'method=CreateRecurringPaymentsProfile&token=' + detail['response']['TOKEN'],
success: function(data){
var obj = $.parseJSON(data);
profile = obj['response'];;
localStorage.setItem('123',JSON.stringify(profile));
displayPremiumContent(obj);
$.mobile.hidePageLoadingMsg();
},
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