/    Sign up×
Community /Pin to ProfileBookmark

AJAX multi requests

Am trying to make a newsletter in Ajax i need to send many requests, one after the other… when one finishes the other must start a requests

This is the logic:
– Ajax takes a certain constant (5) send it to the PHP
– PHP takes the 5 and in MySql takes the 5 and makes a LIMIT to it
– So PHP chooses 5 emails from the database and sends them the news
– Then returns to AJAX
– Ajax again gives control to PHP
– PHP sends 5 more emails etc…

but i dont seem to be able to write it in code specially the AJAX am not really familiar, yet am quite good in PHP so i guess my problem is specially with AJAX

help please

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Jul 17.2009 — When you get the response, you would need to make another Ajax call back to the server. You can not keep an http call open.

Eric
×

Success!

Help @trickyserge 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 5.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

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