Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
l0om16588y
-
rehman15168y@jordinebot damn ;( in other conditions that's why I was doing it inside the response of ajax and was working fine, so of the example in your example they are asking for is to sisable async of ajax
-
nicholai8578y@rehman contact me at nicholainissen@gmail.com and ill show you the solution :) essentially you want to store promises in an array and do Promise.all(arr) - if this makes no sense, shoot a mail. Im omw to werk so 40~ mins
-
nicholai8578y@featurenotbug while bluebird is amazing, i recommended him a solution that doesn't require him to change his stack, something they might not be in a position to do. jQuery.ajax and it's derivatives return a promise, and jQuery exposes a when function that takes n params of promises and resolves when they all do, so i instructed him to push them to an array and then $.when.apply(arr)...etc and it works well :)
-
rehman15168y@norman70688 I did, didn't get what first link is saying but I was doing things like second link
Related Rants
-
C0D411That sad sad moment you spot someone returning HTML in an ajax request 🥺 Why lord must you punish me?
-
Badr7Phone call... Caller: we contact you to arrange an interview for Java developer position, what time is good w...
-
Teezha16First day at new web dev job: Me: what IDE do you guys use? Coworker: Notepad/notepad++ M: Okay... Any version...
Can anyone help me in jquery?
I'm doing a loop of trigger which are 13 in count, but every trigger event contains ajax call and what my problem is that it doesn't wait for ajax response and keep hitting trigger until last trigger fires.
so I'm having my ajax response only on last one.
What can I do for this?
undefined
jquery all the time
ajax
help me