Bitcoin Forum

Other => Beginners & Help => Topic started by: biqs4zi4f on February 22, 2012, 08:33:16 PM



Title: I wrote a Javascript for adding a "Donate Bitcoins" button to your website
Post by: biqs4zi4f on February 22, 2012, 08:33:16 PM
... and an article on how to get it:
http://leo.bogert.de/2012/02/22/simple-bitcoin-donate-button/


Title: Re: I wrote a Javascript for adding a "Donate Bitcoins" button to your website
Post by: biqs4zi4f on February 22, 2012, 10:07:17 PM
Updated to be more user friendly - Explains how to copy-paste now ;D
Also, I've added an explanation of why it is implemented as manual instead of automatic copy (browser issues).


Title: Re: I wrote a Javascript for adding a "Donate Bitcoins" button to your website
Post by: ForceField on February 23, 2012, 12:41:45 AM
Nice work and simple code.

Any way to have this work in conjunction with the native Bitcoin client automatically?


Title: Re: I wrote a Javascript for adding a "Donate Bitcoins" button to your website
Post by: biqs4zi4f on February 23, 2012, 02:21:43 AM
Any way to have this work in conjunction with the native Bitcoin client automatically?
Someone pointed out that there is a proposal for Bitcoin URIs:
https://en.bitcoin.it/wiki/BIP_0021

However I don't know whether it is possible to check w/ Javascript whether the browser can eat bitcoin URIs.
If that was possible then my mechanism could be implemented as fallback.
If it is not possible then bitcoin URIs should not be used until the Bitcoin client version which supports them has been out for some time.
I'll put finding that out on my TODO list.

Also, what I would like to know: Is BIP21 implemented in the current standard Bitcoin client for Windows?