[Xerte] xerte 2.n - Help needed to remove and then re-duplicateicons

Julian Tenney Julian.Tenney at nottingham.ac.uk
Wed Jun 9 11:30:42 BST 2010


When you're manipulating xml, I always do:

 

If (icon.built != true){

  //manipulate the xml

  icon.built = true;

}

 

Then it will only happen once, and bult = true is set on the underlying
XML node itself. Is that it?

 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp
Johnathan
Sent: 09 June 2010 10:08
To: Xerte discussion list
Subject: [Xerte] xerte 2.n - Help needed to remove and then
re-duplicateicons

 

I am working on a new page wizard that is based on the quiz page.

 

As part of its functioning it presents the user with an option screen.

 

The selections the user makes will decide how many "questions" are
presented to the user.

 

The problem is that whilst I can get the page to run once, if the user
then clicks on the restart button, or returns to the page at a later
time, the page will not run correctly a second time as I am not able to
successfully remove and re-duplicate the "proQuestion" that is the
master for all the questions that are created at run time.

 

Can anyone see what I am doing wrong, or suggest the correct way to
achieve this?

 

I have attached a sample project which includes both a quiz page that
attempts to remove and re-duplicate the questions each time the page is
returned to or the Restart button is clicked. If I can get this to work
I should be able to get the same process to work in my new page.

 

The sample project also includes an example of my new page so that you
can see what I am trying to achieve.

 

The idea of the new page is to support music practice where for example
the end result may be to play a number of different scales with both
hands with variety of expression and style. Initially practice may be to
learn the scales playing only the left or right hand, and then later add
playing hands together, then later add variations of style and
expression. Selection of an easy level only offers for practice single
handed scales. Harder levels then introduce double handed play,
variation in style and expression.

 

In both example pages it is the "make pages" script icon that needs
attention. The quiz page gives you some idea of what I have tried so
far.

 

Any help would be most appreciated.

 

Kind regards

 

Johnathan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100609/b7fca8e3/attachment.html


More information about the Xerte mailing list