Post
Topic
Board Project Development
MtGox ticker issues
by
F4C3
on 12/05/2011, 01:38:57 UTC
Does anyone else have trouble pulling a jQuery.get() from the mtgox /code/data/ticker.php?  For the life of me I couldn't figure out why my jsonp request failed repeatedly.  I put together a relay script to return it correctly, at least for my scripts.  Feel free to use it.

http://btc.jalder.com/mtgox.php

example usage:
Code:
$(document).ready(function() {
$('#update').click(function(){
     $.get('http://btc.jalder.com/mtgox.php',null,function(data){
$.each(data, function() {
$.each(this, function(k,v) {
                                       //Do something interesting with the data
});
});
},'jsonp');
              return false;
});
});