HTTPS causes jQuery to ignore request
Posted
by Josh
on Stack Overflow
See other posts from Stack Overflow
or by Josh
Published on 2010-06-03T13:22:01Z
Indexed on
2010/06/03
13:24 UTC
Read the original article
Hit count: 168
jQuery
I have an odd bug, this jQuery code executes correctly when calling the page via HTTP, but once I connect to the page via HTTPS it doesn't execute. The code basically tracks when a link is clicked.
<html>
<head>
<title>Test Page</title>
<script type="text/javascript" src="/scripts/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(
function() {
$('.fbspb').click(function() {
$.get("/services/lt.ashx?ac=fbspb");
return true;
});
});
</script>
</head>
<body>
<a href="http://www.facebook.com" class="fbspb" target="_blank">Facebook</a>
</body>
</html>
I've tried updating the URL in the get use a full HTTPS path with no success. No error is raised when I try to HTTPS.
© Stack Overflow or respective owner