June 18th, 2002, 05:56 AM
bit by bit display of list contents
I'm very stuck at the minute, I have a database cgi script which perfroms searches on the database and returns a hitlist. The problem is that this hitlist can become very large, and to show all the results at the same time is impossible. I therefore want to be able to display sections of the hitlist and provide a link to the next section, however I am at a loss with reguard to how I do this.
at the minute the code goes something like this:
for smile in result_list:
print result_html % (smile, smile, smile, tdt_display(smile))
I'm not gonna put all the details of the code, but basicaly I wondered if anyone could point me in the right direction?
June 18th, 2002, 12:10 PM
Maybe this helps
June 20th, 2002, 07:05 AM
It might work, but I'm not so sure...
I have looked at using the hidden field on a form to pass the values of the python list slice, but I don't see how I am able to then pass subsequent values for the next python list slice and the one after, ect, ect...
without having to have a new set of html with the different values in it. I don't think I am being very clear about this, but I don't really know what to do.
The saving of the list is fine, as I have taken care of that, it's just the display that I am having problems with.