• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

window.btoa is not supported in IE ?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

it complains - SCRIPT438: Object doesn't support property or method 'btoa'
here is the js i am trying to execute


i searched on internet and found i need to include base64.js or base64.min.js
above scripts i got from links
https://raw.github.com/davidchambers/Base64.js/master/base64.min.js
https://raw.github.com/davidchambers/Base64.js/master/base64.js
i included them in my code but again either i am getting same issue or i get blank screen ...
Please help me out
 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Show us the code or create a little fiddle that shows the problem.
 
Bhawana Gupta
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Albareto i am using this code piece in a javascript function, being called when a user clicks on some button on GUI:

this works absolutely fine with Chrome browser, but when i run same in IE ... nothing happens on button click and when i view browser console for errors i see :
SCRIPT438: Object doesn't support property or method 'btoa'
please let me know if further details required ...
 
Albareto McKenzie
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't want to show your code we cannot really help you, the only thing I can tell you is that this code works in IE:




So I don't know what you are doing wrong or why it does not work because the only thing you show is one line without any context of what you are including whatsoever.
 
Bhawana Gupta
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Albareto ... i didnt mean to hide my code.. (just new to this forum and learning to ask questions)
here is the dummy jsp file:

when i run on chrome and click button the file is getting downloaded. But on IE blank screen appears and nothing else happens
 
Albareto McKenzie
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With the provided code I don't get any error, I do get what you said in IE, that the file cannot be downloaded.
 
author
Posts: 15385
6
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
https://developer.mozilla.org/en-US/docs/Web/API/Window.btoa

 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I ran your code in IE9 and I get the error:

SCRIPT122: The data area passed to a system call is too small.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic