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!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
update error winXP
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 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: 377
- 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: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
-
- Posts: 377
- 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: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact: