Hi,
One of my forms doesn't save anymore after I did an update. I see a "Saved" message but then all fields are cleared out. Has anything changed with the save function?
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.
Saving not working anymore
Re: Saving not working anymore
Timo,
Can you give more information, like, do any of your Forms save?
Steven
Can you give more information, like, do any of your Forms save?
Steven
Re: Saving not working anymore
It is just one form that causes problems when saving. I added breakpoints to js functions and found out that the problem must be related to the nuAjax function.
Obviously nuAjax is called twice while saving. The first time the function runs through properly without any problems since window.nuAjaxCompleted is true.
The second time nuAja is called window.nuAjaxCompleted is false and the functions aborts. Looks like there's a timing issue (1st nuAxaj call still running as it runs asynchronously)
When I comment this the line out that checks for window.nuAjaxCompleted, the saving succeeds. But I'm not sure if it has other side effects if this line is excluded.
Code: Select all
function nuAjax(w,successCallback,errorCallback){
if(!window.nuAjaxCompleted){return;}
The second time nuAja is called window.nuAjaxCompleted is false and the functions aborts. Looks like there's a timing issue (1st nuAxaj call still running as it runs asynchronously)
When I comment this the line out that checks for window.nuAjaxCompleted, the saving succeeds. But I'm not sure if it has other side effects if this line is excluded.
Re: Saving not working anymore
Steven, what do you think?Timo wrote:When I comment this the line out that checks for window.nuAjaxCompleted, the saving succeeds. But I'm not sure if it has other side effects if this line is excluded.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Saving not working anymore
Timo,
Try the latest from GitHub. There have been some changes:
https://github.com/steven-copley/nubuil ... 6c944008e3
Try the latest from GitHub. There have been some changes:
https://github.com/steven-copley/nubuil ... 6c944008e3