Hi all,
With a function a div-popover gets called and filled with dynamic data using Ajax, PHP, MySQL and some HTML/CSS. All goes fine.
When I want to delete an entry in the list just popped over it functions as it should. When I send an update request for my list it also goes the way I want it. But, when i call delete(); update();
right after eachother my first function gets skipped somehow.
When I place alert()'s
in both functions I see both functions are getting executed and the scripts walk fine through my ajax function, PHP ajax handler and returns the result back to the user, and with the alerts on all is going well too!
So my question is, are my functions too fast? Or is there something I'm missing here which is causing the non-delete?
Solution I've moved the update
call to the line after the xmlHttp.resonseText
in the delete
function. In that way the second function call gets executed after the first function is done. Thanks all!