Skip to content

Commit

Permalink
jquery loading is now protocol-agnostic
Browse files Browse the repository at this point in the history
works over http AND https now
  • Loading branch information
Martin K. committed Nov 26, 2014
1 parent 42c123e commit 478a407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<label for="longurl">URL to shorten</label> <input type="text" name="longurl" id="longurl"> <input type="submit" value="Shorten">
</form>
</form>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script>
$(function () {
$('#shortener').submit(function () {
$.ajax({data: {longurl: $('#longurl').val()}, url: 'shorten.php', complete: function (XMLHttpRequest, textStatus) {
Expand All @@ -20,4 +20,4 @@
});
</script>
</body>
</html>
</html>

0 comments on commit 478a407

Please sign in to comment.