Skip to content

Instantly share code, notes, and snippets.

@feedhenry-gists
Created June 15, 2011 09:04
Show Gist options
  • Save feedhenry-gists/1026753 to your computer and use it in GitHub Desktop.
Save feedhenry-gists/1026753 to your computer and use it in GitHub Desktop.
HTML and iScroll Tabbed UI Template App Internals Config
// what to do when app is loaded and ready to go
$fh.ready(function () {
...
// Make act call to get latest config from server
$fh.act({
act: 'getConfig'
}, function (result) {
...
// Got config from server, so overwrite our local config
...
config = result;
...
fh_app.init();
}, function (code, errorprops, params) {
...
// use default config, which is already assigned in config.js
...
fh_app.init();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment