Jan van Erp
08-14-2003, 04:14 AM
Hi, there.
Following my request, several members of this group have contributed to the creation of a really useful (for me, that is...) Panta script - see thread 'A real challenge for JavaScript magicians'. So maybe I am over-asking a bit here. On the other hand: who can resist an interesting challenge?
This is my request: for something that I am in the process of writing right now - a rather ambitious book-like dynamic structure called PANTACYCLOPEDIA (in short: P) - I would like to have a mechanism that
- keeps track of exactly which pages my reader has already read and which (s)he hasn't seen yet, and
- uses this 'reading history' to either deny or permit this particular reader access to other parts of the book.
See what I mean? I want P to be 'a book with a memory' - the reader reads the book, the book reads the reader (that's about as interactive as one can get!).
The reason for this wish of mine probably is quite obvious to you smart guys (and gals) out there: certain chapters in P are rather difficult to grasp without some prior knowledge that is to be found in other chapters. In other words: in my ideal P, only by reading chapter A, one can earn the right to delve into chapter B - not unlike to what happens in some computer games such as MYST.
I am a 100% JavaScript analphabetic, but I assume that such a system could work on the basis of putting the value of some variables into cookies, all of this assuming that the reader has allowed the use of cookies (or JavaScript, for that matter). Other pages, menu pages for instance, could then use these values to decide which buttons are being shown when the reader opens the menu concerned, and which aren't.
Any suggestions?
Following my request, several members of this group have contributed to the creation of a really useful (for me, that is...) Panta script - see thread 'A real challenge for JavaScript magicians'. So maybe I am over-asking a bit here. On the other hand: who can resist an interesting challenge?
This is my request: for something that I am in the process of writing right now - a rather ambitious book-like dynamic structure called PANTACYCLOPEDIA (in short: P) - I would like to have a mechanism that
- keeps track of exactly which pages my reader has already read and which (s)he hasn't seen yet, and
- uses this 'reading history' to either deny or permit this particular reader access to other parts of the book.
See what I mean? I want P to be 'a book with a memory' - the reader reads the book, the book reads the reader (that's about as interactive as one can get!).
The reason for this wish of mine probably is quite obvious to you smart guys (and gals) out there: certain chapters in P are rather difficult to grasp without some prior knowledge that is to be found in other chapters. In other words: in my ideal P, only by reading chapter A, one can earn the right to delve into chapter B - not unlike to what happens in some computer games such as MYST.
I am a 100% JavaScript analphabetic, but I assume that such a system could work on the basis of putting the value of some variables into cookies, all of this assuming that the reader has allowed the use of cookies (or JavaScript, for that matter). Other pages, menu pages for instance, could then use these values to decide which buttons are being shown when the reader opens the menu concerned, and which aren't.
Any suggestions?