Skip to content

Instantly share code, notes, and snippets.

@SidneyAllen
Created December 14, 2011 17:14
Show Gist options
  • Save SidneyAllen/1477503 to your computer and use it in GitHub Desktop.
Save SidneyAllen/1477503 to your computer and use it in GitHub Desktop.
jqm-cf-subscribe-06
$.ajax({
url: 'subscriptions.cfc',
data: 'method=GetExpressCheckoutDetails&token=' +
ec['url']['token'],
success: function(data){
var obj = $.parseJSON(data);
detail = obj;
$('#amt').html('Our premium 1 year subscription costs $' +
obj['response']['AMT']);
$('#confirmMsg').html('<a href="#" id="confirm" ' +
' data-role="button">Confirm Your Subscription</a>');
$('#paid').page('destroy').page();
$.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