[Xerte-dev] Re: Bootstrap code for deeplinking
Smith, John
J.J.Smith at gcu.ac.uk
Thu May 23 10:01:56 BST 2013
Could use something like...
if (twttr && twttr.widgets) twttr.widgets.load();
?? Sorry not at computer...
Regards,
John Smith
Sent from Samsung Galaxy SII
-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Thursday, May 23, 2013 8:15 AM
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Bootstrap code for deeplinking
> Also, i'm seeing this console error "Uncaught ReferenceError: twttr is not defined " at this line twttr.widgets.load();
It's to force any embedded twitter widgets to load after a parse. It's a bit of a clobber, because I just call it, whether there are twitter widgets or not.
-----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 07:15
To: xerte-dev at lists.nottingham.ac.uk
Subject: [Xerte-dev] Bootstrap code for deeplinking
Hi,
I've put some code in to try to get deeplinking working in the boostrap template. So just now it works for page and section - haven't implemented tab nav yet but should be easy too if required. No error checking, single digit page only so needs work, etc
Also, i'm seeing this console error "Uncaught ReferenceError: twttr is not defined " at this line twttr.widgets.load();
Regards,
John Smith | Learning Technologist
Room A251, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA
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
_______________________________________________
Xerte-dev mailing list
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
More information about the Xerte-dev
mailing list