[Xerte] RE: Access nextChild from ID?
sonal chawla
sonal_chawla at yahoo.com
Thu Oct 8 05:04:55 BST 2009
julian,
I am developing the C++ course in Xerte to be launched through Moodle...I created LOs in xerte and then package them as SCORM zip files....I import these zip files in Moodle....now how and at what point should i generate Metadata for the LO develope in Xerte
Bye.
Sonal.
--- On Tue, 6/10/09, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:
> From: Julian Tenney <Julian.Tenney at nottingham.ac.uk>
> Subject: RE: [Xerte] RE: Access nextChild from ID?
> To: "Xerte discussion list" <xerte at lists.nottingham.ac.uk>
> Date: Tuesday, 6 October, 2009, 3:33 AM
> Access
> nextChild from ID?
>
>
>
>
> just to add - try and be consistent in how you use
> this stuff, otherwise it can get messy. I tend
> to:
>
> - try and set
> properties on the xml first, if possible, but not all
> properties can be set through the xml;
> - use
> expressions to get at data in some sort of data provider as
> I described;
> - access child
> icons and loop over those after the xml has parsed to set
> properties (the icons exist by this point) or do other stuff
> like draw into them. I think the icons get pushed into the
> pageIconID.children array?
> - A decision
> icon can help keep icons seperate (so you get a clean array
> of just the icons you are interested in, i.e. just the text
> icons you duplicated in your example earlier).
>
> If you settle on
> an approach it will be easier later to understand your
> code,
>
> J
>
>
>
> From:
> xerte-bounces at lists.nottingham.ac.uk on behalf of Julian
> Tenney
> Sent: Mon 05/10/2009 17:18
> To: Donald.Mackay at beagle.com.au; Xerte discussion
> list
> Subject: [Xerte] RE: Access nextChild from ID?
>
>
>
>
> iconID.XMLElement.nextChild etc
>
> XMLElement gives
> you the xml node associated with the icon,
>
> J
>
>
>
> From:
> Donald.Mackay at beagle.com.au
> [mailto:Donald.Mackay at beagle.com.au]
> Sent: Mon 05/10/2009 16:42
> To: Xerte discussion list
> Subject: Access nextChild from ID?
>
>
>
>
> Hi
>
> Thanks everyone for the help and tips its made the
> adventure much more pleasant.
>
> I have come to another question:
> I can access others icons in the tree using:
> icon.previousSibling , nextSibling etc but I am wanting to
> reference from an
> icons id eg I would like to access the decision icon with
> id='targets' children
> using targets.childNodes[i] instead of a brittle set of
> prevs and nexts.
>
> Is this possible? or is there another way to achieve this?
>
> Thanks
> Donald
>
>
>
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
From cricket scores to your friends. Try the Yahoo! India Homepage! http://in.yahoo.com/trynew
More information about the Xerte
mailing list