UpUp
UpUp copied to clipboard
Can upup.js make multiple offline page specific URL ?
Can upup.js make multiple offline page specific URL?
I have a web build with upup with multiple page application, and this web can be accessed if offline.
if i requested page
/chat_contact/add or /chat_contact
why this screen give offline text ? even though i define this page in array
sample code for it
<script>
UpUp.start({
'assets': [
'/logo.png',
'/css/style.css',
'/chat_contact',
'/chat_contact/add',
'/chat_contact/edit',
'/chat_contact/view'
],
});
</script>
Thanks
If I'm understanding the application correctly (and @TalAter can correct me if i'm wrong), you would define the html page directly, such as:
<script>
UpUp.start({
'assets': [
'/logo.png',
'/css/style.css',
'/chat_contact.html',
'/chat_contact/add.html',
'/chat_contact/edit.html',
'/chat_contact/view.html'
],
});
</script>
However, i'm not sure if this is the idea you are going for, as this would only cache the actual html page itself, with no assets in it...
To me, it would make more sense to define UpUp.start in every page that you intend to use it in, and defining assets in that page....