numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
200 stars 118 forks source link

HTTPS MathJax #155

Closed jamesdp closed 12 years ago

jamesdp commented 12 years ago

KU's Blackboard environment uses https and different browsers flag the mixed content in different ways (e.g. Chrome's message might put-off some users). Can the scripts be modified to selectively use http/https depending on the original connection?

christianp commented 12 years ago

What we do is have a copy of the default theme for tests going on blackboard, which uses the HTTPS version. If you swap the <script> tag loading MathJax in themes/default/files/index.html with the commented-out HTTPS one above, you shouldn't get any warnings on blackboard. I'll have a look into if there's an automatic way of detecting the protocol, or if there's a good reason not to use HTTPS all the time for mathjax.

anthonyyoud commented 12 years ago

Ah, didn't realise you'd commented on this Christian. I don't think there's any reason why we shouldn't just use secure MathJax by default, which is what I've done. @jamesdp git pull to get the fix.

jamesdp commented 12 years ago

@anthonyyoud git pull OK but now (in Ff & Chrome) tests (whether SCORM or unpackaged) stop loading with MJ's "Loading..." message (just after it says something about loading Mathzoom.js.)

jamesdp commented 12 years ago

[Perhaps unrelated -- in Firebug "NetworkError: 404 Not Found - https://studyspace.kingston.ac.uk/courses/1/SELO_Numbas_student/content/_2971172_1/scripts/start-exam.js" from <script charset="UTF-8" type="text/javascript" src="scripts/start-exam.js" charset="utf-8"></script>.]

christianp commented 12 years ago

Ah, I added a new file this morning but forgot to commit it! Very sorry! Try doing a git pull again.

jamesdp commented 12 years ago

:-) thanks! That fixed it...