Tuesday, December 10, 2019

Keeping our code current

Orbeon Forms works in part in the web browser (the "client") and in part on the server. Both sides communicate together via HTTP and what is known as "AJAX". Simply put, it's a way to exchange information between both parties.

Now it turns out that the client-side code related to this part of the product was still using fairly old support libraries. One of them, which was quite good in its time but is now outdated, is YUI.

So recently, as a maintenance step, we have replaced that code to use the modern Fetch API. This is now supported by all browsers except IE11, and for that browser we have what are called polyfills to keep things working. We have also rewritten the relevant code using Scala.js, which we use for all new client-side code. Things will be way more maintainable this way.

Some of the new code using the Fetch API
The good news is that as a user of Orbeon Forms, you don't need to know about this, except if you are curious to know about how things work under the hood, of course!

This change will be part of Orbeon Forms 2019.2.

No comments:

Post a Comment