${root}/billing.html - contains an input box for the name on credit card
${root}/js/com/mycompany/common/common.js - initializes logging and error handling
${root}/js/com/mycompany/common/Url.js - class that is used to perform an AJAX call
${root}/js/com/mycompany/aproject/billing.js - initializes things on the billing page
${root}/billing.html
: contains an input box for the name on credit card${root}/js/com/mycompany/common/common.js
: initializes logging and error handling${root}/js/com/mycompany/common/Url.js
: class that is used to perform an AJAX call${root}/js/com/mycompany/aproject/billing.js
: initializes things on the billing page
So for example, common.js containscommon.js
:
var com_mycompany_common_common = function() {
function log(message) {
console.log((new Date()) + ': ' + message);
}
function init() {
window.onerror = function(message) {
log('Unhandled error: ' + message);
}
}
return {
log: log,
init: init
}
} ();
$(document).ready(function() {
try {
com_mycompany_common_common.init();
} catch (e) {
console.log('Error during initialization: ' + e);
}
});
Url.jsUrl.js
:
billing.jsbilling.js
:
billing.htmlbilling.html
: