Timeline for How can you encode/decode a string to Base64 in JavaScript?
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 27, 2021 at 21:35 | history | edited | Peter Mortensen | CC BY-SA 4.0 |
Active reading [<https://en.wikipedia.org/wiki/Base64>]. Expanded.
|
Feb 10, 2017 at 22:20 | comment | added | metaColin | jQuery was not requested. Not a valid answer to a plain old JS question. | |
Mar 12, 2016 at 5:28 | comment | added | Jimbo Jonny |
@Risadinha - except its functionality does not depend on or extend anything jQuery at all...literally the only references to jQuery in its code are attaching it to the jQuery object...so what's the point in attaching it to jQuery and therefore requiring jQuery to use? Just make it it's own 1 liner base64.encode(...) and base64.decode(...) ...attaching it to jQuery when it has zero jQuery specific functionality makes absolutely no sense...
|
|
Oct 10, 2015 at 12:32 | comment | added | Mark Giblin | This "Global Namespace" business, and using frameworks for execution of small programs, bag idea and JQuery is written in JavaScript, IT IS NOT JavaScript. Read up about atob() and btoa() because you will find that it is not consistent across browser types. | |
Jul 22, 2015 at 2:11 | comment | added | OzBob | w3schools.com/jsref/met_win_btoa.asp indicates btoa support for chrome, ie10+, firefox, safari, opera | |
Dec 1, 2014 at 12:44 | history | edited | Vitalii Fedorenko | CC BY-SA 3.0 |
added 71 characters in body
|
Jun 25, 2014 at 7:23 | comment | added | sffc | I like to install code snippets like this into jQuery mainly because they'll exist in a controlled namespace. If you're not using AMD or CommonJS or a similar design pattern, it's easy for your global namespace to get really messy with a bunch of random functions. | |
Jun 14, 2014 at 16:52 | comment | added | Lodewijk | I've gone and given up. A jQuery subset should be formalized and introduced into the JS standard like a ".net". It's not pretty, but the need is overwhelming and it's come to rule the ecosystem. | |
Aug 26, 2013 at 17:04 | comment | added | Risadinha | This is not a core functionality or there wouldn't be as many different high voted answers (including do-it-yourself tl;dr code). So, imho this is actually a good use case for jQuery (one liner, expected to work even in Android's WebView) - even more if it's already a dependency. | |
Apr 29, 2013 at 11:04 | comment | added | EaterOfCode | Why does everything need to be a jQuery plugin :c this is just core JavaScript functionality this has nothing to do with the DOM or jQuery | |
Sep 17, 2012 at 4:50 | review | Suggested edits | |||
Sep 17, 2012 at 5:03 | |||||
Dec 27, 2011 at 3:27 | history | answered | Vitalii Fedorenko | CC BY-SA 3.0 |