HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 23rd, 2000, 09:20 AM
chrisdice4 chrisdice4 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Cape Town, WP, South Africa
Posts: 39 chrisdice4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
hi there

I am busy with a project and have hit a snag, I have created a html spreadsheet of sorts where users can input data next to a product, the only problem is the larger ranges, cause the browser to do funny things.
I have determined this is a memory problem, as it works with 128 Megs but on nothing smaller. What I want to do is return 50 rows, then if there are more enable the user to go to the next page that has 50 and so on until finished. Any suggestions where to start.

Reply With Quote
  #2  
Old October 23rd, 2000, 12:11 PM
JSchoof JSchoof is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 82 JSchoof User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 46 sec
Reputation Power: 9

Well, it sounds like you are working with a database of some sort. So you must be bouncing off a perl/asp/python/php page. If this presumption is correct, all you do is:

1) Set up a variable in whatever backend language you have that notes the last record number that you retrieved. So on the first query, if you were showing 50 results a page, the variable would be set to 50.

2) Pass that on to yer html page. Put a link at the bottom that goes:

http://www.foo.com/cgi-bin/script.pl?last=50

3) When they click that, pull the "last" variable into the script. When spinning through your record set, start spitting data out when you hit "last + 1" and stop when you hit "last + 50".

Not the most elegant explanation, but I hope you get the idea.

Josh

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > how to dynamically create follow on pages


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT