Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: August 19, 2022, 9:41 am

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using BabelJS
#1
Using BabelJS
So, I recently learned about BabelJS, and it looks like an interesting technology. It seemed to me it could be used to make my web-app ( https://flatassembler.github.io/PicoBlaz...Blaze.html ) work in Internet Explorer 11. It does not work in Internet Explorer 11, but it is not exceptionally modern JavaScript, that is, it works in Firefox 52 (the last version of Firefox to run on Windows XP). So, here is what I tried. In the head, I added this ( https://github.com/FlatAssembler/PicoBla....html#L387 ):
Code:
   <script id="objectAssignPolyfill"></script>
   <script id="symbolPolyfill"></script>
   <script id="fetchPolyfill"></script>
   <script id="BabelJS"></script>
   <script id="BabelPolyfill"></script>

Now, in the body, I have a message that shows in case JavaScript fails to execute. So, into that message, I added the following code ( https://github.com/FlatAssembler/PicoBla...html#L1111 ):

PHP Code:
         Oryou can try
 
         <a href="javascript:void(0)" onclick="downloadBabel()"
 
           >polyfilling your browser with BabelJS</a
          
>.
 
       </div>
 
     </div>
 
     <script>
 
       function downloadBabel() {
 
         document.getElementById("objectAssignPolyfill").src =
 
           "https://cdn.jsdelivr.net/npm/object-assign-polyfill/index.min.js";
 
         document.getElementById("symbolPolyfill").src =
 
           "https://cdn.jsdelivr.net/npm/symbol-es6/symbol-es6.min.js";
 
         document.getElementById("BabelPolyfill").src =
 
           "https://unpkg.com/@babel/polyfill/dist/polyfill.js";
 
         /*
           Do not include the minified file, because Babel Minifier
           transpiles "RegExp('x','y')" into "/x/y", which is a syntax
           error in Internet Explorer 11!
      */
 
         document.getElementById("BabelJS").src =
 
           "https://unpkg.com/@babel/standalone/babel.min.js";
 
         document.getElementById("fetchPolyfill").src =
 
           "https://cdn.jsdelivr.net/npm/[email protected]/dist/fetch.umd.min.js";
 
         var scripts document.getElementsByTagName("script");
 
         for (var 0scripts.lengthi++) {
 
           if (scripts[i].type == "text/javascript") {
 
             var newScriptTag document.createElement("script");
 
             newScriptTag.type "text/babel";
 
             newScriptTag.src scripts[i].src;
 
             newScriptTag.setAttribute("async"false);
 
             newScriptTag.innerHTML scripts[i].innerHTML;
 
             document.body.appendChild(newScriptTag);
 
           }
 
         }
 
       }
 
     </script
However, it still does not work in Internet Explorer 11. What else is there to try? It is unfortunate that many people, including relatively tech-savvy ones, still use such ancient browsers, and it would be good if at least some functionality of my web-app were available in them.
Reply
#2
RE: Using BabelJS
Have you tried reverting the rhomboid infraculator with the whisket flange?

Boru
‘Let me never fall into the vulgar mistake of dreaming that I am persecuted whenever I am contradicted.’ Ralph Waldo Emerson
Reply
#3
RE: Using BabelJS
(May 14, 2021 at 5:53 pm)BrianSoddingBoru4 Wrote: Have you tried reverting the rhomboid infraculator with the whisket flange?

Boru

I've heard you need special tools for that.
 “Two things are infinite: the universe and human stupidity; and I’m not sure about the universe.” ~Albert Einstein                                                 
Reply
#4
RE: Using BabelJS
Wow. Stuck back in the dark ages of Internet Explorer. Fucking nobody uses it. But there you are hopefully developing software for it. FFS internet explorer? Are you mad?
Reply
#5
RE: Using BabelJS
(May 14, 2021 at 5:58 pm)arewethereyet Wrote:
(May 14, 2021 at 5:53 pm)BrianSoddingBoru4 Wrote: Have you tried reverting the rhomboid infraculator with the whisket flange?

Boru

I've heard you need special tools for that.

Just a grommet expander with the optional dough hook.

Boru
‘Let me never fall into the vulgar mistake of dreaming that I am persecuted whenever I am contradicted.’ Ralph Waldo Emerson
Reply
#6
RE: Using BabelJS
(May 14, 2021 at 5:59 pm)Abaddon_ire Wrote: Wow. Stuck back in the dark ages of Internet Explorer. Fucking nobody uses it. But there you are hopefully developing software for it.  FFS internet explorer? Are you mad?

My thought also.  In order to keep from having to make physical trips to the bank for work to deposit the checks we get, we were sent a scanner.  Now I have used these check scanners before so no big deal, right?  WRONG....WRONG...WRONG....after multiple tech support calls I was able to get the routing and account numbers to look something like this:  @&5#%@*   *@%&*...if they scanned at all.  The only browser the damn scanner and software is compatible with is IE...are you kidding me?  

Multiple calls made to tech support by me, a coworker, our boss and the use of several different PCs yielded nothing but frustration.  So I plan making deposits around picking up breakfast or lunch from a nearby fast food joint since that's a rare treat for me.
 “Two things are infinite: the universe and human stupidity; and I’m not sure about the universe.” ~Albert Einstein                                                 
Reply
#7
RE: Using BabelJS
(May 14, 2021 at 6:08 pm)BrianSoddingBoru4 Wrote:
(May 14, 2021 at 5:58 pm)arewethereyet Wrote: I've heard you need special tools for that.

Just a grommet expander with the optional dough hook.

Boru

...and a partridge in a pear trrreeeeeee!
 “Two things are infinite: the universe and human stupidity; and I’m not sure about the universe.” ~Albert Einstein                                                 
Reply
#8
RE: Using BabelJS
(May 14, 2021 at 6:23 pm)arewethereyet Wrote:
(May 14, 2021 at 5:59 pm)Abaddon_ire Wrote: Wow. Stuck back in the dark ages of Internet Explorer. Fucking nobody uses it. But there you are hopefully developing software for it.  FFS internet explorer? Are you mad?

My thought also.  In order to keep from having to make physical trips to the bank for work to deposit the checks we get, we were sent a scanner.  Now I have used these check scanners before so no big deal, right?  WRONG....WRONG...WRONG....after multiple tech support calls I was able to get the routing and account numbers to look something like this:  @&5#%@*   *@%&*...if they scanned at all.  The only browser the damn scanner and software is compatible with is IE...are you kidding me?  

Multiple calls made to tech support by me, a coworker, our boss and the use of several different PCs yielded nothing but frustration.  So I plan making deposits around picking up breakfast or lunch from a nearby fast food joint since that's a rare treat for me.

LOL, even Microsoft have abandoned IE and it's failure of a successor.

I have a customer that got stuck in that banking fiasco. I had to tell them up front that it was not my problem, call Bill Gates. Then Edge happened. I thought that might make everything easier. Nope. El banko still insisted on IE because the move at a glacial pace.
Reply
#9
RE: Using BabelJS
(May 14, 2021 at 6:48 pm)Abaddon_ire Wrote:
(May 14, 2021 at 6:23 pm)arewethereyet Wrote: My thought also.  In order to keep from having to make physical trips to the bank for work to deposit the checks we get, we were sent a scanner.  Now I have used these check scanners before so no big deal, right?  WRONG....WRONG...WRONG....after multiple tech support calls I was able to get the routing and account numbers to look something like this:  @&5#%@*   *@%&*...if they scanned at all.  The only browser the damn scanner and software is compatible with is IE...are you kidding me?  

Multiple calls made to tech support by me, a coworker, our boss and the use of several different PCs yielded nothing but frustration.  So I plan making deposits around picking up breakfast or lunch from a nearby fast food joint since that's a rare treat for me.

LOL, even Microsoft have abandoned IE and it's failure of a successor.

I have a customer that got stuck in that banking fiasco. I had to tell them up front that it was not my problem, call Bill Gates. Then Edge happened. I thought that might make everything easier. Nope. El banko still insisted on IE because the move at a glacial pace.
The saving grace is that it's a weekly trip to the bank.  Most customers use credit/debit cards and a couple businesses ACH the funds.  Some of the elderly clients write checks and I get it and am okay with that...besides, they have been customers for years.  

If I had to go every day, I would be homicidal.  

I was given a business card last week for a guy who can supposedly fix the issue...one day, when I am feeling particularly masochistic, I may call him.
 “Two things are infinite: the universe and human stupidity; and I’m not sure about the universe.” ~Albert Einstein                                                 
Reply
#10
RE: Using BabelJS
(May 14, 2021 at 6:55 pm)arewethereyet Wrote:
(May 14, 2021 at 6:48 pm)Abaddon_ire Wrote: LOL, even Microsoft have abandoned IE and it's failure of a successor.

I have a customer that got stuck in that banking fiasco. I had to tell them up front that it was not my problem, call Bill Gates. Then Edge happened. I thought that might make everything easier. Nope. El banko still insisted on IE because the move at a glacial pace.
The saving grace is that it's a weekly trip to the bank.  Most customers use credit/debit cards and a couple businesses ACH the funds.  Some of the elderly clients write checks and I get it and am okay with that...besides, they have been customers for years.  

If I had to go every day, I would be homicidal.  

I was given a business card last week for a guy who can supposedly fix the issue...one day, when I am feeling particularly masochistic, I may call him.

I happen to own a paltry few Verizon shares. Every so often, I get an actual physical cheque for dividends. The effort of wading through a bank to cash a few bucks is just not worth it. It has more value to me to point and laugh with my kids.
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Using drones to watch on crime? Fake Messiah 32 1503 September 17, 2019 at 8:32 am
Last Post: EgoDeath
  Using SSDs for dual boot systems emjay 9 938 November 8, 2016 at 7:33 pm
Last Post: emjay
  What OS are you using? account_inactive 89 5402 September 26, 2016 at 3:57 pm
Last Post: account_inactive
  Nothing annoys me quite like linux and using OSS tools KevinM1 12 1700 January 24, 2015 at 12:59 am
Last Post: KevinM1



Users browsing this thread: 1 Guest(s)