After the last update, nubuilder stopped opening on winXP...
error:
nuform.js:5549 Uncaught SyntaxError: Unexpected token ...
report.lan/:294 Uncaught ReferenceError: nuMainForm is not defined
nuajax.js?ts=20220222081308:129 Uncaught ReferenceError: nuBuildForm is not definedsuccessCallback @ nuajax.js?ts=20220222081308:129$.ajax.success @ nuajax.js?ts=20220222081308:17c @ jquery.js?ts=20220222081308:2f.fireWith @ jquery.js?ts=20220222081308:2l @ jquery.js?ts=20220222081308:2(anonymous function) @ jquery.js?ts=20220222081308:2
I ask for help, because the site is in the local network and there are many winXP clients.WIN7-10 and Ubuntu - all ok.
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
update error winXP
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
Re: update error winXP
The error is not caused by windows XP but an old browser that doesn't support the spread operator that was introduced in ECMAScript 6.
Try this:
Replace
with
Try this:
Replace
Code: Select all
select2Options = {...objSelect2OptionsDefault.options, ...select2UserOptions};
Code: Select all
select2Options = Object.assign(select2UserOptions, objSelect2OptionsDefault.options);
-
- Posts: 366
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- Contact:
Re: update error winXP
Nothing happens after breakpoint and page refresh. breakpoint doesn't stop at nuform.js:5549
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
-
- Posts: 366
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- Contact:
Re: update error winXP
select2Options = Object.assign(select2UserOptions, objSelect2OptionsDefault.options);
It helped! Thanks!
It helped! Thanks!
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact: