Post
Topic
Board Bitcoin Discussion
Re: Javascript currency conversion tool for Bitcoin merchants
by
litehacker
on 18/02/2013, 00:02:22 UTC
javascript itself doesn like pulling webcontent from remote servers (price ticker api's). the closest you can get simply is by researching AJAX

http://w3schools.com/ajax/ajax_example.asp

I am not pulling remote server content with javascript. That is against the same origin policy. Plus if it were to keep pinging the bitcoincharts API every time someone views a merchant page, bitcoincharts wouldn't be very happy.

The conversion rates are cached. Makes the javascript calls much faster.