
June 18th, 2002, 04:56 AM
|
|
inexperienced and useless
|
|
Join Date: Aug 2001
Location: Stevenage, uk
Posts: 10
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
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?
I know how to slice the list, and can do that ok, it's the link to the other section that I have problems with. Ideally I would like a javascript 'onclick' command to induce a python command is this possible?
tHaNkS

|