Collin J. Doering
5bbacb1725
Cleans up error reporting when an ajax call fails, and thus the #page-content div can't be filled. This is accomplished by using a #status which has a p.message element that can be populated for text displaying status messages. By adding either .error or .success to #status causes it to be highlighted as either a error or success message respectively. When its the first load of the page, and #page-content hasn't yet been populated with content, an error message is shown in the #page-content div. Removed the /posts/ and /tags/ fallbacks in the generated manifest.appcache because even when online, ajax calls for invalid URLs under those paths return the respective fallback page instead of an error message, and populate the #page-content div with the fallback. So from this point forward the fact that the website is offline will be handled from JavaScript. When a page is not accessible in the application cache and the user is offline, an error message is displayed using the mechanism mentioned above. Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca> |
||
---|---|---|
.. | ||
old | ||
diagonal-stripes.xcf | ||
error-loading.svg | ||
favicon.svg | ||
logo-banner-inkscape.svg | ||
logo-banner.svg | ||
post-icon.svg | ||
rss-icon.svg | ||
tag.svg | ||
tagged.svg |