Re: remove separated items from an array?
- From: Geoff Cox <gcox@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 21 Mar 2009 16:23:25 +0000
On Sat, 21 Mar 2009 12:30:52 +0100, Lasse Reichstein Nielsen
<lrn.unread@xxxxxxxxx> wrote:
Geoff Cox <gcox@xxxxxxxxxxxxxxxxxxxxxxxxx> writes:
My idea in presenting the tasks in set1, set2 etc is to use an array...
in the page for each set,
var sections = new Array(1,2,3,4,5,6)
For something like this, I would design an object model that represent
the data and operations that I need to perform.
Only after doing that, on paper, would I start worrying about how to
represent the data in JavaScript. I.e., get a high-level understanding
of the requriements before getting bogged down in details.
too true!
In this case, you have a set of questions. Depending on the answers to
that set, you continue with some other set (or set of sets) of
questions.
It would be easier I suppose if set2 and set3 questions could be
taken immediately after set1. But this noy allowed - to lessen memory
effects.
Sounds like a queue of sets of questions, and each question answered
can potentially add more sets to the queue.
will think long and hard before amy more javascripting.
Thanks
Geoff
.
- References:
- remove separated items from an array?
- From: Geoff Cox
- Re: remove separated items from an array?
- From: Martin Honnen
- Re: remove separated items from an array?
- From: Geoff Cox
- Re: remove separated items from an array?
- From: Lasse Reichstein Nielsen
- Re: remove separated items from an array?
- From: Geoff Cox
- Re: remove separated items from an array?
- From: Lasse Reichstein Nielsen
- Re: remove separated items from an array?
- From: Geoff Cox
- Re: remove separated items from an array?
- From: Lasse Reichstein Nielsen
- Re: remove separated items from an array?
- From: Geoff Cox
- Re: remove separated items from an array?
- From: Lasse Reichstein Nielsen
- remove separated items from an array?
- Prev by Date: Re: Prototype and instanceof
- Next by Date: Re: 'this' confusion
- Previous by thread: Re: remove separated items from an array?
- Next by thread: Re: remove separated items from an array?
- Index(es):
Relevant Pages
|