JSFiddle "Blocked loading mixed active content"



我正在尝试加载一些过去(比如6个月前)工作的旧fiddle,现在外部库由于没有https链接而无法加载:

Blocked loading mixed active content “http://code.jquery.com/ui/1.8.18/jquery-ui.min.js”
Blocked loading mixed active content “http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.css”
Blocked loading mixed active content “http://code.jquery.com/ui/1.8.18/jquery-ui.min.js”
Blocked loading mixed active content “http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.css”
TypeError: $(...).sortable is not a function

最后一个错误很明显是因为库没有加载。

的例子:https://jsfiddle.net/abalter/2ydhrLmx/3/

这是浏览器配置问题吗?防火墙工作吗?我已经在更新后的chrome和firefox中尝试过了。

如果我修复链接,小提琴工作。但我为什么要用我所有的旧小提琴做这些呢?

jsfiddle似乎已经迁移到fiddle.jshell.net。所以你需要:

  1. 将URL从jsfiddle.net/yourname/*更改为fiddle.jshell.net/yourname/*
  2. 选择你的库与齿轮,将正确加载。但这是棘手的,因为只有一些版本的jQuery有关联的jQuery UI库,并不是所有的工作。

如果一切顺利,你原来的小提琴将不需要加载永久的https库。

这是我在问题中给出的例子。唯一的变化是1)更改URL和2)选择的库在齿轮下。 https://fiddle.jshell.net/abalter/2ydhrLmx/

最新更新