[Xerte-dev] Re: parseContent (0)

Julian Tenney Julian.Tenney at nottingham.ac.uk
Fri May 24 08:26:52 BST 2013


I've always followed the rule that the first something should be 0, because if you start using 1 in some places and 0 in another, it gets confusing, so the function should hide it from the users: they book mark page 1, we navigate to (0). Or we just bookmark page=0. It's just a bookmark, the important thing is it goes to the right place.

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 23 May 2013 18:31
To: For Xerte technical developers
Subject: [Xerte-dev] parseContent (0)

Should we change parseContent (0) to parseContent (1) for page 1 or simply define a helper function gotoPage (x) where we subtract 1 ?

Also at present we can run user code in the same scope as the application code... should we run it in a closure and expose the public methods??

John

Sent from Samsung tablet

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev


More information about the Xerte-dev mailing list