Sorry... That doesn't sound like a very good candidate for a mobile platform... If you proceed, I'd use a chapter format or stagger release in chunks. As a learner how would you like to take an hour of training on your phone? Just my thoughts... --kurt
...
But if you *must* do something like this, you might work with HTML5's Local
Storage stuff (http://diveintohtml5.org/storage.html). This will only work
across a single device (we are providing no service to hold session state
for you) and browser, but it _should_ work.
The idea is that you store your current page and state in localStorage (a
variable), and reload it when someone starts your story.
In this example story, I store some random text in localStorage['foo'],
which will persist even if you refresh the page. To try it, click one of
the links to store text, and then refresh to see it retrieved.
http://breadcrumb.googlelabs.com/read?id=ag5nbGFiczIwLXBhdmxvdnIOCxIFU3RvcnkYs6q9AQw
Remember that the function go(page) will send the reader to any page in
your story, so if you start each page by storing where you are
(localStorage['page'] = '1', for example), you can start the first page by
returning there (if (localStorage['page']) { go(localStorage['page'] }).
Again, probably not a good deal to have an hour+ long story, but the
general concept of local storage is something I think might be useful to
Breadcrumbers on the list. :) Thanks for pushing the envelope!
On 8:31 am, MiketheChap <miket...@gmail.com> wrote:
> I tried this code from the previous post
> on a breadcrumb and it didn't work. This code
> does work. What am I doing wrong?
> I have gotten it to save to localStorage but just can't get past this.
> I am even trying to learn some javascript to get through this.
> Any ideas? I am trying to use breadcrumbs to create a small quiz...
>> On Jan 13, 9:41 am, Adam Blinkinsop wrote:
>> > I agree with Kurt, personally.
I guess my next question would be: what do you need persistence for here?