Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我可以在https页面中使用jquery.form.js吗_Jquery_Ssl_Validation - Fatal编程技术网

我可以在https页面中使用jquery.form.js吗

我可以在https页面中使用jquery.form.js吗,jquery,ssl,validation,Jquery,Ssl,Validation,我正在开发一个SSL加密的web表单。 我在服务器上有jquery.form.js local。 然而,页面呈现时出现错误“jqueryundefined”。 错误接着解释说它找不到jquery.form.js 这是什么意思?我不能将js文件包含到SSL加密的页面中吗 谢谢, Getz一些用户的浏览器设置为排除不安全的内容,例如,您不能在https://页面上包含http://中的脚本并可靠地使其工作。如果您的文件是服务器的本地文件,请将其设置为相对URL,如下所示: <script sr

我正在开发一个SSL加密的web表单。 我在服务器上有jquery.form.js local。 然而,页面呈现时出现错误“jqueryundefined”。 错误接着解释说它找不到jquery.form.js

这是什么意思?我不能将js文件包含到SSL加密的页面中吗

谢谢,
Getz

一些用户的浏览器设置为排除不安全的内容,例如,您不能在
https://
页面上包含
http://
中的脚本并可靠地使其工作。如果您的文件是服务器的本地文件,请将其设置为相对URL,如下所示:

<script src="/js/jquery.form.js" type="text/javascript"></script>
<script src="//mystaticdomain.net/js/jquery.form.js" type="text/javascript"></script>

或者,如果它不在同一个域上,请使用协议相对URL,如下所示:

<script src="/js/jquery.form.js" type="text/javascript"></script>
<script src="//mystaticdomain.net/js/jquery.form.js" type="text/javascript"></script>

这将根据需要在http和https之间切换(无论页面是什么),只需确保其他域也设置为使用SSL证书服务