Meeeh, I was trying to avoid that. It is much more work... I would need to set database entries and look when the data was last checked so I don´t send data to blockchain.info everytime a user clicks on my site... A nice little javascript would let the user check the current values. I think that would be way better concerning live data and also my server wouldn´t need to check the data, which could cause the site to load slower when the script gets triggered. But I guess you also don´t have a solution to my javascript problem?(if there is any)
Maybe you know if it is Blockchain.info that does not want to respond to javascripts or is it the javascript that does not want to connenct to blockchain.
I analyzed the traffic in firefox and it shows that I´m actually sending the data and getting a response, but the response are only headers and no data...
So if this "same Origin" policy is there for security reasons like preventing XSS, then it is not doing its job, right? Cuz it sends data to the server anyway. I have not tested how far this policy goes and if it is possible to send cookies or something like that.
Also it works for MtGox to receive data from the server. If the address is like "
http://something.something.com/xyz"(like it is when using the gox api) it seems to work. If the address is like "
http://something.com/xyz" it does not work? Also I can get data from Blockchain.info when I open the html file with the script in it with the Internet Explorer from a file(file://xyz.html), but when I do it with a server running(localhost/xyz.html) it does not work... In Firefox it doesn´t work at all. WTF?! I couldn´t find a solution to this problem, but I´m sure I´m not the first one that has this problem. Any help is appreciated. This stuff is really driving me mad!!!