Home > Forum > Rules, JS, SQL > JavaScript changes after moving to WEBCON BPS 2023

JavaScript changes after moving to WEBCON BPS 2023
1

MVP

Hi everyone,

I think any changes to JavaScript is worth a dedicated thread, since these won't effect everyone and can be quite technical.

As everyone has read the change log, it should be no surprise that we need to apply some changes to any JavaScript based modifications.

The cash-dom library has replaced the former jQuery library.
The change may affect how form rules work in JavaScript mode if the rules used the functionality provided by jQuery.
For a description of the differences in the operation of the two libraries, see:
https://github.com/fabiospampinato/cash/blob/master/docs/migration_guide.md

This thread is dedicated for all those changes, whether they are stated in the migration above or not.

Example the prototype string no longer has the functions
'contains'
'splice'
'splitRemoveEmptyEntries'
'isBlank'

I used:
document.location.toString().contains

I have only encountered the issue yet but did not fix it.

I got these differences using in the old and new version:
Object.getOwnPropertyNames(Object.getPrototypeOf(document.location.toString()));

Best regards,
Daniel