|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > how to dynamically create follow on pages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|