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> |
||
---|---|---|
.. | ||
business-card.png | ||
diagonal-stripes.png | ||
error-loading.png | ||
favicon.ico | ||
favicon.ico.png | ||
favicon.svg | ||
init-loading.gif | ||
logo-banner.svg | ||
post-icon2.svg | ||
post-icon.svg | ||
rss-icon.png | ||
tag.svg | ||
tagged.svg |