[Xerte-dev] Re: 1.9 properties

Fay Cross Fay.Cross at nottingham.ac.uk
Wed Oct 31 13:49:05 GMT 2012


At the moment the function for changing page in the html5 version works with the page index so I'll need to add something that will find a page by its id too.  I'll leave this for the moment though if this is one of the things that isn't finalised yet.

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan
Sent: 31 October 2012 13:03
To: For Xerte technical developers
Subject: [Xerte-dev] Re: 1.9 properties

 "From talking to Johnathan who wrote the original Flash versions they all have some common functions in them"

Any help moving the connector pages to html5 would be much appreciated.

However please be aware that the connector pages are currently in a state of flux in that following discussions prior to Julian going on leave I believe that Julian may be building some support in the engine that will result in modifications to the Connector pages e.g. with respect to the selection of page name or page ID; support in the engine to turn on / off different combinations of navigation buttons. Until I know what is or is not going to be available and how Nottingham want the available navigation options to be offered I can't finalise anything.

The function to go to a new page is already in the engine rootIcon.gotoPage()

I have defined two functions that are common to all the connector pages

1) To handle the setting of navigation options fnSetNavigation()  -which is highly likely to change as a result of the above mentioned discussion.
2)  fnListToClipboard which is used to generate a list of page names and page IDs so to support the author when creating links. This may become redundant if the wizard is able to provide a drop down list of page names and matching page IDs.

The plainTextConnector page uses a function called fnTextCon This is used to provide a function that can be called from a hyperlink. This function manages the setting of the navigation, the usual setting of error messages if the destination page ID is not found and if the page ID is found the going to that page.

The scenario connector has a number of additional functions that are unique to this page type which would not be appropriate to be included in the engine.

I hope this is of help.

Kind regards

Johnathan


On 31 October 2012 09:49, Fay Cross <Fay.Cross at nottingham.ac.uk<mailto:Fay.Cross at nottingham.ac.uk>> wrote:
Hi John

Thanks for sending these.  I'll get them on my test version and try them out.

Apologies if me changing some of the way the main files work last week has messed you about at all.  I changed it so that all the main elements, variables, functions etc. that we don't want to be messed around with on accident by naming something the same in a page model now begin with 'x_'.  It looks like you've used this version in making these models so hopefully it didn't affect you too much.  I wouldn't have thought there'd be anything else big changing in the xenith.js file now that would mean changing all the model pages.

You mentioned that you might look at the connector pages at some point.  From talking to Johnathan who wrote the original Flash versions they all have some common functions in them (e.g. functions that find the page with the correct page id).  As the same code will be used in several page models then the best place for this is probably the xenith.js file so we're not repeating the same code in multiple page model files.  I'm happy for you to add anything in there that's needed.

Thanks again for the work you've done so far - I certainly didn't expect that a couple of weeks after the AGM someone who hadn't contributed anything before would have got involved so quickly!

Fay

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John
Sent: 30 October 2012 19:44
To: For Xerte technical developers
Subject: [Xerte-dev] Re: 1.9 properties

Hi Fay,

That makes sense now. I've attached the delicious.html and the youtuberss.html models for now while I work on the textDrawing.html and youtube.html ones, I hope they get your approval, given the quality of the rest of your code...

A caveat is that the delicious.html one doesn't actually work but that's because the JSON API tag feed appears to be broken. According to their dev pages here (http://delicious.com/developers#title1), this url should return a JSONP object of the first 10 search results for 'cuillin', wrapped in test():

http://feeds.delicious.com/v2/json/tag/cuillin?callback=test&count=10

Now it was working yesterday but just died today and now only returns: test([]) for any tag... strange. Have tried contacting them but still no reply. Commit it anyway and when it starts working again I'll fix any errors that crop up. I've still not checked out any of the other options although i've included an equivalent if else statement to that in the equivalent rlm. Will test these also when I get access to a more comprehensive data.xml file...

Regards,

John Smith | Learning Technologist
Room A251, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA ________________________________________
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Fay Cross [Fay.Cross at nottingham.ac.uk<mailto:Fay.Cross at nottingham.ac.uk>]
Sent: 30 October 2012 09:48
To: For Xerte technical developers
Subject: [Xerte-dev] Re: 1.9 properties

You're right, the Html5 stuff really needs to be in the other svn. I think I was just reluctant to do this before as I didn't want a new Toolkits zip to be made which included it until there was a way to properly access the html5 versions of projects.

Thanks for looking at some of the outstanding pages that need doing, that's really useful, could you send them to me please if you can't commit them.
________________________________________
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John [J.J.Smith at gcu.ac.uk<mailto:J.J.Smith at gcu.ac.uk>]
Sent: 29 October 2012 16:49
To: For Xerte technical developers
Subject: [Xerte-dev] Re: 1.9 properties

Hi,

I know I'm new here but personally I think that JSON export would at least be as useful if not more useful as XML, especially when working in a JavaScript environment like the HTML5 engine. (see next part)

Incidentally, not sure if I only have commit access to XOT since XERTE desktop is being treated as almost dead in the water but the Xenith code i'm working on is part of the XERTE trunk, not XOT. My interest is just now is getting the HTML5 engine mature enough to use in anger. Over the weekend i've done the following HTML5 engine models:

     delicious (95% ready) - had to use JSONP request because of same origin policy
     youtuberss (95% ready) - have use new JSONC request
     textDrawing (<50%) - don't have a sufficient test file for this model and the XOT Jisc site won't save the image or let me add pictures just now... need to get XOT installed locally or use usb version temporarily (anyone help out with a test XML stub for this model??) Oh and the screenshot shows the freehand done using pixel <divs> for non canvas compatibility
     youtube (~80% ready) - just a guess as only a few sizing issues

Attached some screenshots for those who want to see.

I'ml definitely interested in working on the connector pages soon though and tying this altogether as we want a "mobile" compatible (read iPad) RLO repository of some fashion by the end of the academic year.

Regards,

John Smith | Learning Technologist
Room A251, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA ________________________________________
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Pat Lockley [patrick.lockley at googlemail.com<mailto:patrick.lockley at googlemail.com>]
Sent: 29 October 2012 13:25
To: For Xerte technical developers
Subject: [Xerte-dev] Re: 1.9 properties

Also, would JSON export be more useful / as useful as XML export?

On Mon, Oct 29, 2012 at 1:24 PM, Pat Lockley <patrick.lockley at googlemail.com<mailto:patrick.lockley at googlemail.com>> wrote:
> WordPress has a theme supports function, so I am thinking of having a
> list to indicate the tabs per template, or something similar
>
> On Mon, Oct 29, 2012 at 1:15 PM, Ron Mitchell <ronm at mitchellmedia.co.uk<mailto:ronm at mitchellmedia.co.uk>> wrote:
>> 1, 2 & 3
>> Personally I don't think it's a necessity that the same tabs exist
>> for all templates but I suspect it's easier to just display a message
>> like 'This property is not relevant to this template' than it is to
>> change the code to dynamically change tabs based on the template in use.
>>
>> 4
>> Increase the properties window size and display 'This property is not
>> relevant to this template' for Xerte templates?
>>
>> Just my quick thoughts...
>> Ron
>>
>> -----Original Message-----
>> From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk>
>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Pat
>> Lockley
>> Sent: 29 October 2012 12:48
>> To: For Xerte technical developers
>> Subject: [Xerte-dev] 1.9 properties
>>
>> Hello,
>>
>> On the properties panel there are several options which are sort of
>> xerte specific - XML and media and quota for example.
>>
>> Some of the new templates aren't XML, so XML makes no sense - and the
>> media and quota code is very xerte specific.
>>
>> Would people think
>>
>> 1) all off these options should exist for all templates?
>> 2) should tabs exist even if the functionality doesn't?
>> 3) what sort of message should it say
>> 4) what if I have scope for an extra tab?
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>> This message and any attachment are intended solely for the addressee
>> and may contain confidential information. If you have received this message in
>> error, please send it back to me, and immediately delete it.   Please do not
>> use, copy or disclose the information contained in this message or in
>> any attachment.  Any views or opinions expressed by the author of
>> this email do not necessarily reflect the views of the University of Nottingham.
>>
>> This message has been checked for viruses but the contents of an
>> attachment may still contain software viruses which could damage your computer system:
>> you are advised to perform your own checks. Email communications with
>> the University of Nottingham may be monitored as permitted by UK legislation.
>>
>>
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

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<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

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<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121031/41c6e0b1/attachment-0001.html>


More information about the Xerte-dev mailing list