Javascript for HTTPS
Javascript for HTTPS
我一直在浏览谷歌、bing等,试图找出如何让我的脚本正确运行,但谷歌chrome表示,它试图从未经验证的来源加载脚本,我不100%确定这意味着什么。
这是我的登录页面,它在localhost上运行良好,但chrome不喜欢运行脚本。
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script>
$(function () {
$('#login').on('submit', function (e) {
e.preventDefault();
$.ajax({
type: 'post',
url: 'calls.php',
data: $('#login').serialize(),
success: function (data, response) {
if(data==1)
{ window.location.href = "/account.php";
return false;}
else{ $( ".result" ).html( data );}
}
});
});
});
</script>
<div style="background-image:url('img/doxramos.png'); background-size:100% 100%; width:455px; height:188px;margin-left:auto; margin-right:auto;"></div>
<form method="post" class="login" id="login" action="calls.php">
<input type="hidden" name="process" id="process" value="login">
<label for="login">Email:</label>
<input type="text" name="username" id="username" placeholder="name@example.com">
</p>
<p>
<label for="password">Password:</label>
<input type="password" name="password" id="password" placeholder="Password">
</p>
<p class="login-submit">
<button type="submit" class="login-button" id="submit">Login</button>
</p>
<p class="forgot-password"><a href="index.html">Forgot your password?</a></p>
</form>
<div class = "result" style="text-align:center; margin-left:auto; margin-right:auto;"></div>
这意味着您使用SSL运行当前文件/页面,但您从非https URL获取资源。
只需更改URL
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
相关文章:
- 为什么JavaScript在for循环为3时向所有4发出警报
- 另一个ajax调用中的Jquery ajax调用在for循环中没有按预期工作
- Is onfling available for html, html5
- Setting default onclick behavior for <img> tag in gene
- 我的javascript for循环不起作用
- For循环冻结Javascript
- 如何在for循环中添加事件侦听器
- Javascript setTimeout for an array
- 双“for”循环(循环)
- 关于引入外部javascript文件的问题&css通过https
- 引用vue.js中v-for中的上一个值
- javascript for循环不起作用
- jquery ajax https调用给出ERR_INSECURE_RESPONSE
- for循环中的javascript if语句找不到==
- GWT (or javascript) library for couchDB
- Javascript在for循环中等待处理请求
- Livereload for node.js.有可能吗
- jQuery setTimeOut: in for-loop
- 我没有'I don’我不理解for在循环中的用途
- Javascript for HTTPS