Scroll to top

Aug 11, 2023

The home on the web of Colin Walker.
Find out more on /about, say /EHLO, or tune in to the daily RSS feed.

Aug 11, 2023#p3

I'm so used to working with the linear flow of PHP and primarily using JavaScript to animate and manipulate the DOM.

SPARKS is making me work! 😆 It's good, though, because I'm learning.

With multiple AJAX calls within the same workflow I was getting caught out by them not completing in sequence and a file which should have been there getting deleted before it could be accessed.

I've ended up having to nest the calls so that the second only starts after the first completes. I could have started messing around with async functions and await but that would make things more complicated than they needed to be.

Still, I've ironed out some kinks and the file export feature is done. Just search to go and I already know how I'm going to do that repurposing code from elsewhere.