HTTPS causes jQuery to ignore request
- by Josh
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.