Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8620029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:28:59+00:00 2026-06-12T06:28:59+00:00

So I have created about 150 Testusers for Load Testing. I need to be

  • 0

So I have created about 150 Testusers for Load Testing. I need to be able to delete those 150 user quickly. The current only way to Delete the users are one at a time.The way you delete a user is by click a Delete button that changes the value of a form and then submits it. Which then takes you to another page in which you are asked to confirm.

<a class="enable-delete-link" onclick="deleteUser(23367)">Delete</a>

function deleteUser(userID) {
            $j('#deleteForm > input').val(userID);
            $j('#deleteForm').submit();
          }

<form action="user-delete.jsp" id="deleteForm" method="post">
<input type="hidden" name="user" value="" />
</form>

Is it possible to submit the form multiple time in multiple new window in which and can just go through and manually hit the confirm button.

I have tried

for(people = 23245; people < 23391; people++){  
$j('#deleteForm > input').val(people);
$j('#deleteForm').attr('target', '_blank');
$j('#deleteForm').submit();
}

but it will only open a single page.

Thanks for you help!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:29:00+00:00Added an answer on June 12, 2026 at 6:29 am

    You don’t have to use the popup to make a form post, you can use an ajax post.

    for(var people = 23245; people < 23391; people++){
        $.post('user-delete.jsp', {user: people});
    }
    

    That being said it would be better to have a batch delete on the server, and you could submit a range of values to that action. Most browsers have limitations on concurrent ajax request that you would have to account for with this method.

    You could also do something like this to make each subsequent request in turn:

    var range = [];
    for(var people = 23245; people < 23391; people++){
        range.push(people);
    }
    
    var deleteOne = function(){
        if(range.length > 0){
            // success calls deleteOne again
            $.post('user-delete.jsp', { user: range.pop() }, deleteOne);
        }
    };
    
    // kick it off
    deleteOne();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a user that created about 50 sheets inside a Google Spreadsheet. Each
I have created a wildcard App ID and have some questions about bundle ID
I have created a MySQL database using MySQL Workbench. It has about 20 tables.
I have a newbie question about integrating two iOS apps. I have created an
i have one question about jquery ajax().. I created a table grid and there
I have some basic (stupid) questions about AWS EC2 instances or AMIs. I created
Okay, here's the situation: We have a table of about 50 columns (created by
I have an excel sheet which has about 150,000 records, operations like find replace,
I have created public synonym as suggested in my other question about creating view
I have a csv file with 350,000 rows, each row has about 150 columns.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.