Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding sync support. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

fruedadina
Copy link

Hola Christian, he estado trabajando con vajax. Me parece estupendo lo que has hecho, me has ahorrado un buen rato de trabajo. Al intentar usarlo en 3er. plano en modo síncrono he tenido problemas y los he resuelto.

Te dejo los detalles (los puse en inglés porque vi que tu también lo haces en tu código, por tanto para que sea coherente - no escribo inglés muy bien ;) - ):

If you launch vajax from a third plane with "async: false" option, don't work because "while(xhr.readyState != 4) { xhr.processEvents(); }" don't work for sync procedure. Now can skip this code if sync procedure is apply.

xhr.open() has fixed with async option, because "options.async || true" is true always. Now is true by default or false if you want sync procedure.

If you launch vajax from a third plane with "async: false" option, don't work because "while(xhr.readyState != 4) { xhr.processEvents(); }" don't work for sync procedure. Now can skip this code if sync procedure is apply.

xhr.open() has fixed with async option, because "options.async || true" is true always. Now is true by default or false if you want sync procedure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant