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

  • SEARCH
  • Home
  • 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 7895147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:34:20+00:00 2026-06-03T07:34:20+00:00

i have a form where i need to insert an item, here is the

  • 0

i have a form where i need to insert an item, here is the html of the form.

<form action="test.php" class="form" method="post">
    <?php for($i=0; $i<=500; $i++): ?>
        <div class="formRow itemList">
            <select class="chzn-select" tabindex="2" name="items[]">
                <option value="3">Toys</option>
                <option value="4">Books</option>
                <option value="5">Shirts</option>
                <option value="6">iPad</option>
            </select>
            <span style="width:7%;float:left;margin-left:2%;" style="">
                <input type="text" name="quantity[]" class="est_quantity" placeholder="quantity" value="10"/>
            </span>
            <span style="width:7%;float:left;margin-left:2.5%;" style="">
                <input type="text" name="cost[]" class="est_cost" placeholder="cost" value="100"/>
            </span>
            <span style="width:7%;float:left;margin-left:2.5%;" style="">
                <input type="text" name="rate[]" class="est_rate" placeholder="rate" rate="200"/>
            </span>
            <span style="width:7%;float:left;margin-left:2.5%;" style="">
                <input type="text" name="size[]" class="est_size" placeholder="size"/>
            </span>
            <span style="width:7%;float:left;margin-left:2.5%;" style="">
                <input type="text" name="cartonnum[]" class="est_carton_no" placeholder="carton no."/>
            </span>
            <span style="width:8%;float:left;margin-left:2.5%;" style="">
                <input type="text" name="numofcarton[]" class="est_cartons" placeholder="ctns."/>
            </span>
            <span style="width:8%;float:left;margin-left:2.5%;" style="">
                <input type="text" name="qtyctn[]" class="est_qtyctn" placeholder="qty/ctn"/>
            </span>
            <span style="width:7%;float:left;margin-left:2.5%;" style="">
                <input type="text" name="cbm[]" class="est_cbm" placeholder="cbm"/>
            </span>
            <div class="clear"></div>
            <a href="#" class="itemRemove">Remove</a>
        </div>
    <?php endfor; ?>
</form>

and it goes like this.

  • there are 9 input elements in a row.
  • sometimes i need to enter 300 to 500 items.
  • that comes to a count of 500 * 9 = 4500 input elements.

The code is tested on:

  • Browser: google chrome 18.0.1025 and safari 5.1.3
  • Operating System : OSX 10.7.3
  • environment: local

when i tried executing the code i get serious performance, here is the stats.

Page Loading Time:

  • general page loading time: 2.4 seconds on average.
  • with css style applied : 5.3 seconds on average.
  • with css style applied and including some js libraries: 3.1 seconds on average
    – i have no idea why after including js libraries the page load time is being reduced, i am using jQuery, jQuery ui and some more plugins like jQuery Chosen Plugin.

Input element response time on focus of mouse and keyboard:

here is where thing tends to get out of bounds.

  • In google chrome when i try inputting some values in elements the
    page freezes.
  • In Safari there is a lag of 4 seconds while shifting focus to other
    elements. and after shifting several focus on several input elements the lag time is reduced drastically to few milliseconds.

The weird thing i noticed is when i remove <form> attribute from the code. the performance is improved with a very little lag or no lag on both the browser. i have no idea whatsoever is causing this behavior.

i am inserting the rows for form elements dynamically using this plugin : MultiField

so my question is:

  • how do i improve the loading time speed and more importantly to stop the weird behavior that causes the script to stop execution by the browser?
  • what is the reason for causing this behavior by browser on
    using form element.

any type of libraries that could boost the performance, tips, or anything that could help me improve the performance is greatly appreciated.

thank you.

  • 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-03T07:34:21+00:00Added an answer on June 3, 2026 at 7:34 am

    Okay, so sometimes you need to enter 300-500 items. Not always. And do you really need to enter them all on one page?

    I’d be pretty annoyed if I’d entered 497 items onto a web form and then my browser crashed on me. That would be followed pretty quickly by a rather abusive tech support phone call to your offices 🙂

    Find a way to persist smaller amounts of data (say ten items at a time) so you don’t need all those input fields at once. This should both speed up your performance and make you a little safer from psychotic customers.

    For example, shove them into a server side database ten items at a time, identified by a cookie value stored on the client side. The ten-items-at-a-time scenario is a nice page size (the user edits their list in ten-item chunks). Web-based commerce does this sort of stuff all the time, with their shopping carts and such.

    When users want to submit the entire list, the cookie value is used to tie together all the pages to submit a cohesive unit of work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a form button in the form,which i need to perform basic action
I have post form with submit button before submit i need to call c#
I have a form builder class which inherits from AbstractType and I need to
I have a form I need to insert some information into one table. Then
I have a user signup form, and I need to insert a function to
I have Form Designer web application, in which I need to post the controls
I have a pre compiled form which i need to insert a button into
Hї! I have wrote test for my application. I need add item to database
I have a form and I need to add some data from database before
I have a form MyForm : System.Windows.Forms.Form {} and I need to call Site.GetService(..)

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.