Any thoughts on why this fails?
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$.ajax({
url: 'https://mtgox.com/code/data/ticker.php',
dataType: 'jsonp',
success: function(data){
// Note: because of failure, not even trying to print out the ticker data at this point
alert('foo');
}
});
});
</script>
</head>
<body>
</body>
</html>
In firefox 4.0.1, I get this error:
Error: invalid label
Source File: https://mtgox.com/code/data/ticker.php?callback=jQuery1610765425372311095_1307774805819&_=1307774805835
Line: 1, Column: 1
Source Code:
{"ticker":{"high":28.601,"low":20.01,"vol":98283,"buy":21.751,"sell":21.8156,"last":21.8158}}
In chrome 12.0.742.91, I get these errors:
ticker.php: -1Resource interpreted as Script but transferred with MIME type text/html.
ticker.php: 1Uncaught SyntaxError: Unexpected token :