This question has been asked several times already, but has been solved with poor implimentations.
A poor implimentation in my opinion is something that:
Uses a library like mootools or jquery
Uses some sort of delay in between requests like setTimeout(“doNext()”,3000);
Specifically what I am trying to achieve is this.
<div onClick="javascript:one();two();"></div>
one() and two() are AJAX
one() MUST come before two()
two();has to be called in the success handler of the ajax inone(). E.g.:html:
javascript: