473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Page with many form elememts

Hello,

I would like to ask for your help.

I am trying to create a page with table of many form elements.
The size of the table is 84x10 (84 rows, 10 columns) and each cell
contains 1 form element (select box, checkbox, etc ...)

As you can see I have 840 form elements in the page.

Q: Why so big table?, Why so many form elements?
A: I have 84 channels that I would like the user to configure while
seeing the rest of the channels.

My problem is that it takes almost 10 seconds to display the page and
another 10 seconds to set the elements with the server data (read by
ASP function).

My website is loaded only by IE 5.0 and above.

My questions are:

Can I use so many elopements in 1 page?,
Would I will have problem with submitting so many elements?
Do you know where I can see the max elements per page for IE?

Any others ways how to handle so many elements?
Any other web technologies to think about?
BTW:
To which other newsgroups should I try sending this message?

Thanks,

Yaron
Jul 20 '05 #1
1 2515
To speed up the rendering of the page with 840 rows
I recommend making 840 tables instead of using 1 table
with 840 rows.

That will make it so that the browser doesn't have
to render the data for all 840 rows before rendering
one large table. This approach also has the side effect
of making things look nice even if the data in one of
the rows has several hundred characters in which results
in making all your columns real wide - just to accommodate
that one row of globby data.

To speed up processing on the back end, I recommend using
just one form, but labelling the controls for each row sequentially.

Like this :

<form>
<table width=690><tr>
<td><input type=checkbox name=chk_1></td>
<td>Color<input type=text name=color_1></td>
<td>Make<input type=text name=make_1></td>
</tr></table>
<table width=690><tr>
<td><input type=checkbox name=chk_2></td>
<td>Color<input type=text name=color_2></td>
<td>Make<input type=text name=make_2></td>
</tr></table>
table width=690><tr>
<td><input type=checkbox name=chk_3></td>
<td>Color<input type=text name=color_3></td>
<td>Make<input type=text name=make_3></td>
</tr></table>
<input type=hidden name=total_items value=3>
</form>

This approach does three things :

1. It lets you parse the value of color_* and make_* which come to
the server - you don't have to hard code something for each value 1,2, and 3.

and

2. Lets you iterate through only the set of rows which have been
checked in the checkbox. This is especially useful if you want the
user to be able to delete several items at once or to select or
manipulate the information for several items at once.

3. Since the code will be iterating through only the stuff it needs to
know about that should help improve the 10 second processing time.

Incidentally, instead of using a sequential approach it may be
better to use unique identifiers from the database. So that you
can iterate through all the items you might create a hidden variable.

For example, (not the same example as the one shown above)

You could create this :

<input type=hidden name=database_ids value=1,3,5,9 >

Then you can parse database_ids on the back end, determine that there
are four items, with database ids 1,3,5 and 9.
cy****@yahoo.com (Yaron C.) wrote in message news:<93**************************@posting.google. com>...
Hello,

I would like to ask for your help.

I am trying to create a page with table of many form elements.
The size of the table is 84x10 (84 rows, 10 columns) and each cell
contains 1 form element (select box, checkbox, etc ...)

As you can see I have 840 form elements in the page.

Q: Why so big table?, Why so many form elements?
A: I have 84 channels that I would like the user to configure while
seeing the rest of the channels.

My problem is that it takes almost 10 seconds to display the page and
another 10 seconds to set the elements with the server data (read by
ASP function).

My website is loaded only by IE 5.0 and above.

My questions are:

Can I use so many elopements in 1 page?,
Would I will have problem with submitting so many elements?
Do you know where I can see the max elements per page for IE?

Any others ways how to handle so many elements?
Any other web technologies to think about?
BTW:
To which other newsgroups should I try sending this message?

Thanks,

Yaron

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Perdit | last post by:
My 1st page calls a 2nd that uses same data from a database. What is the best way to get the data in the second: a new call to the database or passing array through session variable?? I seems...
4
by: Kevin Phifer | last post by:
Ok, before anyone freaks out, I have a solution I need to create that gathers content from maybe different places. Each one can return a <form> in the html, so its the classic can't have more than...
5
by: Benjamin Bittner | last post by:
Hi all I have a to different input masks on one page. The first must be posted on itself, the second must be posted to another website and popup in a new window. My problem is, ive got one global...
1
by: Tom wilson | last post by:
Yes, I'm sorry, it's me again. :) Yesterday I went through hell trying to figure out why my aspx pages wouldn't maintain state. I had a simple example I (we) eventually got to work. What...
14
by: Laser Lu | last post by:
Hello, All, I just want to know that generally how to get the HtmlForm element in an ASP.NET Page? Can anybody help? Please:) Best regards, Laser Lu
7
by: Shadow Lynx | last post by:
I realize that his question has been asked, in many other forms, many times in this group. Even so, my tired eyes have not yet found a sufficient answer, so I've decided to "reask" it even though...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
4
by: Scott Shuster | last post by:
Hi, I've been searching and testing and have not yet found the answer I'm looking for. I have an ASP.NET (vb) application with an ecommerce function. When the user submits the page, I DON'T...
15
by: rdps | last post by:
I am a newbie to the python world. I am trying my hands at one task: I am trying to access a website, say, "http://xyz.com" and then trying to maniulate the gui elememts already present on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.