Skip to content

Instantly share code, notes, and snippets.

@SidneyAllen
Created December 14, 2011 17:38
Show Gist options
  • Save SidneyAllen/1477603 to your computer and use it in GitHub Desktop.
Save SidneyAllen/1477603 to your computer and use it in GitHub Desktop.
jqm-cf-subscribe-08
var profile = $.parseJSON(localStorage.getItem('123'));
$.mobile.showPageLoadingMsg();
// PROFILE ALREADY EXISTS, VERIFY IT.
if(profile !== null)
{
if (profile['PROFILESTATUS'] === 'ActiveProfile')
{
$.ajax({
url: 'subscriptions.cfc',
data: 'method=GetRecurringPaymentsProfileDetails&profileid=' + profile['PROFILEID'],
success: function(data){
var obj = $.parseJSON(data);
displayPremiumContent(obj);
$.mobile.hidePageLoadingMsg();
},
error: function(request, textStatus, error){
$.mobile.hidePageLoadingMsg();
}
});
}
} else {
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment