10-09-2019, 03:18 PM
Possibile errors in IWBootStrap Library
|
10-22-2019, 03:48 PM
(10-09-2019, 09:46 AM)Alexandre Machado Wrote: You are clearly relying on an implementation detail in order to make this "work" (even in IW 14.1.14). There is no obligation for the ajax subsystem to wait for the first request/response cycle to be fully processed in order to send the next request... Hi Alexandre, any update for an example of use callback in this specific case? Thanks you Andrea
12-05-2019, 07:58 AM
(This post was last modified: 12-06-2019, 12:15 AM by Alexandre Machado.)
(10-09-2019, 02:43 PM)kudzu Wrote: In the JS world this is normal. They use Promises and other async mechanisms to deal with it on the client side. He is not using promises, nor chained callback calls. In that example he just fires 2 Ajax calls in sequence and "hopes" that the first response is available and fully processed before the second one is sent. This will never happen in any JS library/code.
12-05-2019, 08:53 AM
(This post was last modified: 12-05-2019, 08:54 AM by Alexandre Machado.)
I think your example is a simplification of a different situation... if this was your real code I'd do it differently, because in the end only one call is needed.
Anyway, I'm considering that after the first ajax response, something in your page will update a hidden field and this hidden field value needs to be sent back to IW server. So here it goes. I'm using a second ajaxCall() which will retrieve the hidden input value and submit it to the server. |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)