I am trying to implement the same code from http://jsbin.com/ufufez/1/edit into my environment and it's not working in IE. Can someone give an alternate solutions for this to make it work in IE > 8.
window.btoa() is not supported on <= IE9.
There are few more alternatives but I guess you can use jQuery.base64.js
as below
if (window.btoa) {
msg.dataEncoded = window.btoa(msg.data);
} else { //for <= IE9
msg.dataEncoded = jQuery.base64.encode(msg.data);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With