Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ready()
- {
- // count the number of groups that this user has, adding the ids to a list
- if( count < 50 )
- {
- runAjax();
- }
- else
- {
- // this calls the ajax request on groups of 50 ids
- // it pauses briefly after each request by using setTimeout to call the next
- runAjaxRecursively();
- }
- }
- // run the HTTPRequest
- $.ajax({
- async: true,
- type: "POST",
- url: "emailcatcount.asp?idList="+idList,
- data: "idList="+idList,
- dataType: "html",
- success: function(html) { // blah blah blah }
- });
Add Comment
Please, Sign In to add comment