[Xerte-dev] Re: Bootstrap Template not playing....

Julian Tenney Julian.Tenney at nottingham.ac.uk
Thu Apr 25 10:30:50 BST 2013


That seems to work.

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 25 April 2013 10:24
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Bootstrap Template not playing....

Yeah, I can see what's going on, I'll tinker. Thanks for the defer thing I didn't know about that. I suppose I could put that function in a script and then once it has a src I can defer it.

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] On Behalf Of Smith, John
Sent: 25 April 2013 10:24
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Bootstrap Template not playing....

Sure or add it to a window.onload event...

You may have to tweak the code though as it is expecting to execute inline so is probably injecting html at the point of execution... if you take that out then you'll need to change some code to put it into a placeholder possibly...

Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University

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] On Behalf Of Julian Tenney
Sent: Thursday, April 25, 2013 10:16 AM
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Bootstrap Template not playing....

No, it won't. But I could run that javascript in my jQuery code,

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] On Behalf Of Julian Tenney
Sent: 25 April 2013 10:14
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Bootstrap Template not playing....

Will this do the same thing:

<script defer>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";                   fjs.parentNode.insertBefore(js, fjs);                      }(document, 'script', 'facebook-jssdk'));</script>

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] On Behalf Of Julian Tenney
Sent: 25 April 2013 10:09
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Bootstrap Template not playing....

Simple as that?

The add this one is a script tag, the facebook one is a bit more obfuscated

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] On Behalf Of Smith, John
Sent: 25 April 2013 10:08
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Bootstrap Template not playing....

Try adding defer into the offending scripts...

<script src="code.js" defer></script>

Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University

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] On Behalf Of Julian Tenney
Sent: Thursday, April 25, 2013 9:59 AM
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Bootstrap Template not playing....

Typical. Of all days, today is the day the UoN network appears to have ground to a halt.

It raises a question though: the bootstrap template has the social sharing buttons from addThis at the bottom: when the page loads it needs to load scripts from addthis.com and facebook.com, and if they fail, the page doesn't load. I'll see if I can find a different approach to loading the scripts, but the internet isn't working at the moment. Dargh.


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] On Behalf Of Julian Tenney
Sent: 25 April 2013 09:21
To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>)
Subject: [Xerte-dev] Bootstrap Template not playing....

Argh.

Something has changed since yesterday. I just did a clean xampp install, and the bootstrap template no longer previews, or plays.

What changed?


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


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130425/d33dfcbc/attachment-0001.html>


More information about the Xerte-dev mailing list