Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Records a little at a time

Status
Not open for further replies.

finny

Programmer
Nov 16, 2000
58
US
Hello,
Any suggestions anyone can provide would be greatly appreciated. I haven't started actual development of this ASP page yet. I just thought I would get some expert opinions before I proceed.

For each record I will have 29 fields of data. Fld1, Fld2, Fld3, Fld4, Fld5 and Months 1 - 24.
I need to display Fld1 - Fld5 at all times. However, I would like to display only 6 months at any given time.
On the initial load, I will automatically display the first six months and allow the user to click a "Next 6 Months" button to view the next 6 months repeatedly until months 19 - 24 are displayed.

I guess my question is, do I have to hit the server everytime to retrieve the next six months or can I store the data in an array or another data holder method for quicker access?

This isn't a rush job, but I thought I would throw it out there for anyone who might have done something like this before. One other point I should make is I am developing for use within a NetScape browser.

Thx for any ideas offered.

finny

 
Hi,

First off, there is no developing for a distinct browser, you gotta do it for them all.

You can do this client side using javascript to show and hide the months via layers easily. The real question is what are you trying to do with the app? If you disconnect the record set assuming that you are using data from a DB, you will need to resync the records before updating. If this is just a form with values that are being passed to the DB then its pretty straightforward.

hth
Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Bastien,
I do have to resync with a DB. That's my problem. Should have put that in the original post...

Is the recordset still available after the initial load?
After the user makes changes to the data showing on the screen, can I save the updated info in a javascript array and move the ASP recordset forward 6 months? Then, when the user has finished working with the data, update the DB using the javascript array?

thx...finny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top