/    Sign up×
Community /Pin to ProfileBookmark

How can I create an ajax synchronous call in JavaScript?

Hi!

Does anyone has an example of an Ajax synchronous call in JavaScript?
Please, help me with this!

Thanks for the attention!

Rafael

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@forty2Jul 30.2007 — Look API documentation of XMLHttpRequest() object.

http://www.w3.org/TR/XMLHttpRequest/

open() method suppord async boolean flag.
Copy linkTweet thisAlerts:
@slaughtersJul 30.2007 — Doesn't ssing synchronous calls in AJAX sort of defeats the purpose of AJAX?

Why not just submit a form? In either case a trip to the server is required and the user can do nothing else until it completes.
×

Success!

Help @rafart spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...