We are finding that Dojo is not supported by Edge anymore (Still works in Chrome) We're on Dom14 How can we update Dojo?

Our Dojo version under Domino 14 is 1.9.7-20150127-IBM (based on having to extract the dojo-src-version.txt file from Resources out of D:\Lotus\Domino\osgi\shared\eclipse\plugins\com.ibm.xsp.dojo_12.0.2.20240402-0623).

Apparently this is a specific build of the Dojo Toolkit 1.9.7, customized by IBM on January 27, 2015. It's likely bundled with an older version of HCL Domino and may have specific configurations or patches applied by IBM. (explanation from Gemini).

Is there a way that we can update to a more recent version of Dojo. I believe the current version is 1.17.3 (November 2021) and there's a newer Dojo 2.

Another answer from Gemini...

The current stable version of the Dojo Toolkit is 1.17.3. It was last updated on November 10, 2021.

However, it's important to note that there's a newer, modern framework called Dojo 2 (formerly known as Dojo Framework) which is based on TypeScript and offers a more contemporary approach to web development.

Which version to use depends on your specific needs and project requirements:

  • Dojo Toolkit 1.17.3: Suitable for legacy projects and those who prefer a more traditional JavaScript approach.
  • Dojo 2: Ideal for new projects and those looking for a modern, TypeScript-based framework with a focus on performance and scalability.

Any idea how we can get this into Domino and if it is supported?

Thanks.

Dojo 2 and subsequent are a completely breaking change from Dojo 1.X.

The current version is Version 8, from 2021.

Even more, there was a important sintax change from 1.6 to 1.7, with backwards compatibility.

I won't expect from HCL to upgrade to a current Dojo version, since IBM version (wich is what we have right now in Domino) is close to that 1.6 sintax.

Hi Gavin

Is Egde not Supporting the Dojo version of Domino or just giving a deprecated method used warning .

XPages Warning : Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience (this is attributed to dojo version in use in domino). You may have a look at this post in this very forum that I shared with HCL.

Coming back to your issue. HCL does not support any other version of Dojo Officially. I had a case running with them for close to two months on this very issue about six months back. The final Out come was that any other version of dojo is not supported by Domino.

However, during that period I did extensive work on the issue and figured out a way of upgrading to dojo 1.17.3. I tested the same for my Xpages application on V12 as well as V14. Every thing seems to work fine.

You can use dojo 1.17.3 without any issues. Im pasting below the relevant portion of my support case below that I took up with HCL.

This is the Post by me detailing the method of upgrading dojo version for domino12 and 14

I saw a few interesting points while trying to sort out the issue.

The Data/Domino/JS directory has the Dojo version 1.9.7 but some how the Dojo Folder Still says Dojo-1.5.4. This seems to be out of place.

If you see the xsp.dojo JAR in osgi/shared/eclipse/plugins/com.ibm.xsp.dojo_12.******* and unpacked it, it shows dojo version as 1.9.7.

When you open a browser session for an xpages application the dojo.js and other resources mention the version as 1.9.7

I Did some trial and error trying to use Dojo 1.16.5 and later 1.17.3. The steps that seem to work perfectly are as follows:

(a) place the dojo-1.17.3 Folder in Data/Domino/js folder where Dojo-1.5.4 is already there. Do not need to delete the default folder of default dojo version

(b) Unpack the xsp.dojo JAR located in osgi/shared/eclipse/plugins/com.ibm.xsp.dojo_12.******* Folder

(c) Copy the ibm and dwa folder from xsp.dojo unpacked jar folder into the Dojo-1.17.3 folder along side the existing dojo , dijit and dojox folders

(d) restart the server

Our Xpages Application which uses custom controls as well as some dojo form elements and extension lib controls, all work perfectly well. The Dojo Version in use is now 1.17.3. There are about 35 Xpages with about 5 to 10 controls per page with almost all types of functionalities used including JSON RPC and REST Services. Plenty of Dojo Plots have also been used. The same steps work perfectly for Domino V 14 also The xsp.dojo Jar has not been touched or changed in any way and only changes that have been done is in domino/js directory by adding the Dojo-1.17-3 Folder along with dwa and ibm folder mentioned before . The Plots etc also work fine indicating only the domino/js folder version 1.17.3 is in use. Also no changes done in xsp.properties. Simply the higher version of dojo in domino/js folder gets picked up. If you deleted the domino/js/Dojo-1.5.4 folder , the system still works just fine with Dojo-1.17.3 I have extensively checked my application, it has absolutely no issues with these changes in both V 12 and V 14

This approach had one issues regarding application of response headers (pointed out by Cyber Team). I sorted it out and response sent to hcl was

This is to inform that I figured out the response header issue. I needed to add one more httpresponseheaders rule to internet site document with the incoming URL Pattern as /domjs/dojo-1.17.3/*. The JavaScript Directory is "Domino\JS" relative to Data Directory and JavaScript Path(URL Path) is "/domjs" as per default mapping rules of conguration tab of internet site document.

Hope this helps. You will need to test extensively in your own scenario.

Have a nice day

May I request you to mark the answer as correctly answered if it finally works for you. This will help other users.
Thanks

Thank you so much for answering. I appreciate you for taking the time to write it in brief.

Did you actually try to upgrade the dojo verssion? did it work?