[Xerte] Xerte Dynamic Templates tutorial - clarification
johnathan.kemp at cxstaffs.co.uk
Wed Jul 15 17:02:25 BST 2009
I am part way through the simple quiz example in the dynamic templates
tutorial as described in the document XerteDynamicTemplates.pdf
I am following through the example step by step and trying to ensure
that I understand the logic behind each step, so that I will then be
able to apply this to creating my own templates.
Can I seek clarification on the following points?
The code uses icon.nextSibling.childNodes.duplicate(quesCount -1)
But the text refers to icon.nextSibling.firstChild.duplicate(value)
Is this a typing error? Are both statements required in the code?
Why does icon.parentNode.index( ) - 2 = the number of questions?
Where does the quizData object come from, there appears to be no
previous reference to it?
And a general question - is there a way of easily identifying which node
is being referenced at any time by an expression?
E.g. is there a way of echoing a value for
icon.nextSibling.firstChild.name or .value
I guess I am looking for any tricks you have picked up along the way
that aid you in debugging your template creation.
IT Dev. Manager
This email and any files transmitted with it are confidential and are intended solely for the use of the individual(s) or entity(s) to whom they are addressed. All messages are monitored for virus, high risk files and inappropriate content. As a result users should be aware that this mail maybe accessed, read and the right is reserved to reject, return, remove attachments or delete if considered to be inappropriate or unsuitable. Liability cannot be accepted for any loss or damage arising from this email (or any attachments) or from scripts or any virus transmitted.
This communication represents the originator's personal views and opinions, which do not necessarily reflect those of Connexions Staffordshire. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately reply to the sender or notify postmaster at cxstaffs.co.uk
Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford, Staffordshire, ST16 2PX
More information about the Xerte