Re: remove separated items from an array?



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
.



Relevant Pages

  • Re: remove separated items from an array?
    ... I would design an object model that represent ... Sounds like a queue of sets of questions, ... 'Javascript frameworks is a disruptive technology' ...
    (comp.lang.javascript)
  • Re: When is a function not a function?
    ... a DOM element and Array or a value with falseness. ... betrays very poor code design. ... subject of the test is expected to be any of a javascript function ... There is nothing to say that an object implementing the Node interface should not be a function object. ...
    (comp.lang.javascript)
  • Re: One page, multiple submit buttons
    ... Ive tried using fluid formatting on forms: ... Its FAR better to make your form elements of fixed size, and use scroll bars or pop up sub forms (more javascript) to bring extra detail into play when needed. ... When designing applications that just happen to us a browser as an interface, there is no more point in trying to ensure compatibility with earlier standards than there is trying to make a CAD program run on an 80x25 vt100 with no graphic input device. ... Fluid formatting with no javascript is fine and dandy, but its no more a mark of 'good' design than suddenly having the size of your plate and cutlery shrink when someone sits down next to you at a table. ...
    (comp.lang.php)
  • Re: One page, multiple submit buttons
    ... Ive tried using fluid formatting on forms: ... Its FAR better to make your form elements of fixed size, and use scroll bars or pop up sub forms (more javascript) to bring extra detail into play when needed. ... When designing applications that just happen to us a browser as an interface, there is no more point in trying to ensure compatibility with earlier standards than there is trying to make a CAD program run on an 80x25 vt100 with no graphic input device. ... Fluid formatting with no javascript is fine and dandy, but its no more a mark of 'good' design than suddenly having the size of your plate and cutlery shrink when someone sits down next to you at a table. ...
    (comp.lang.php)
  • Re: best way to load arrays with large amounts of data?
    ... JavaScript - or at least soem thing mroe flaxible than lines and lines ... Server Affinity is completely under ... just enter an asterix "*" for the Queue Name and then click ... Full, one-time, context-specific, VMS User Authentication. ...
    (comp.lang.javascript)