473,396 Members | 1,832 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,396 software developers and data experts.

Best Practice: Passing Many ASP Variable To Client-Side Script?

Seasoned ASP Developers,

I have developed an ASP page that displays multiple rows of data with
which the user may work. As each row is updated, the graphical info
displayed immediately beside the row reflects the changes.
Fortunately, the script (although a little intensive and slow) runs
quickly enough (about 1 sec.) for updates against a single row.

The issue I am running into is that the client-side script must be run
for each and every row just as the page is initially loaded. If the
user displays 25 rows, he may have to wait about 25 seconds -- this is
too long.

I realize I could limit the number of rows displayed and offer the
user paging. This is not the answer for which I am looking. The
graphical data is displayed for comparison purposes; therefore, I
would like to display potentially many rows.

I believe that primary problems may be in the way that I provided the
data from database, to the ASP page, to the client-side script. I
wrote all of the data to hidden input fields and I obtain them in the
script using...

Sub ReflectUpdatesToRow(rowidx)
Dim field1, field2, field3
field1 = document.all.item("field1", rowidx).value
field2 = document.all.item("field2", rowidx).value
field3 = document.all.item("field3", rowidx).value
...
... update graphical data ...
...
End Sub

This works fine. The real issue is that it's slow. (I'm guessing
that the DOM has to work pretty hard to scrape the values from the
many hidden fields written to the page's underlying HTML.) I was
wondering if any of you seasoned developers have found better ways of
passing the data from many rows (e.g. a Recordset) into the
client-side script. Scraping values from HTML fields seems somewhat
inefficient. If you've got a better way, I'd be grateful to learn
from you.

Thank you.
Mario T. Lanza
Clarity Information Architecture, Inc.
Jul 19 '05 #1
0 1355

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

Similar topics

0
by: Tal McMahon | last post by:
Hello All, I have an application that uses several layers as such: a Client that references a ClientHelper a ClientHelper references a WebService a WebService that references a Webservice...
2
by: Duncan Welch | last post by:
Good morning, I have a classic ASP app that I'm converting to .NET. In the existing app when accessing infrequntly changed data, it reads a database once a day, and saves the results in an...
3
by: rob | last post by:
I have have a xmlTextWriter that calls a number of sub routines (up to 60), the only paramter past in is the xmlTextWriter and the paramenter past out is the xmlTextWriter Should I pass this...
3
by: Marc Gravell | last post by:
Kind of an open question on best-practice for smart-client design. I'd really appreciate anyones views (preferably with reasoning, but I'll take what I get...). Or if anybody has any useful links...
10
by: Ren | last post by:
Hi All, I'm still rather new at vb.net and would like to know the proper way to access private varibables in a class. Do I access the variable directly or do I use the public property? ...
4
by: MicroMoth | last post by:
Hi, I'm trying to write a update method, in which when the user clicks the update button the update method is passed 10 form fields. Then a update SQL is run to update the database. My question...
17
by: 2005 | last post by:
Hi In C++, are the following considered best practices or not? - passing aguments to functions (ie functions do not take any arguments ) - returning values using return statement Anything...
51
by: bigHairy | last post by:
Hello. I have been teaching myself .NET over the last few months and have had some success. I would like to ask a question though... A number of examples I have followed have the following in...
0
by: Ronald S. Cook | last post by:
How would you recommend passing errors back from your proc to your business tier to the client (assuming you have full control of all layers)? Take InsertUser for instance. The proc will...
1
by: Ronald S. Cook | last post by:
How would you recommend passing errors back from your proc to your business tier to the client (assuming you have full control of all layers)? Take InsertUser for instance. The proc will...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.