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.
@colinwalker Thank you for a fascinating morning. I was going to say that such things are rarely happen in isolation - which led me down the Jamaican (from whence Kool Herc came) sound systems of the late sixties early seventies rabbit hole - I had forgotten that Big Youth was on Prince Buster's The Message.
I do love getting lost in a good musical history lesson. I was just reading about how Peter Frampton discovered the Talkbox via Austin Kleon's newsletter.