Created
December 14, 2011 17:38
-
-
Save SidneyAllen/1477603 to your computer and use it in GitHub Desktop.
jqm-cf-subscribe-08
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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