Forums

This topic is locked

show record detail in layer from results list

Posted 13 Apr 2004 12:25:00
1
has voted
13 Apr 2004 12:25:00 Jon McGee posted:
I have a search facility that returns 10 results at a time on a page. When
the user clicks on one of the results I want the details of the record to
appear in a 'detail layer' (which will appear on the same page.) When they click on another result (from the list of ten) I want the details in the 'detail layer' to reflect the new choice.

So far I have the results list working and the detail for the first returned result showing in the 'detail layer'. Clicking on another of the results, does not yet, obviously reflect new detail in the 'detail layer'.

Thanks, Jon.

Replies

Replied 13 Apr 2004 15:26:53
13 Apr 2004 15:26:53 Phil Shevlin replied:
Sounds like you're trying to do server-side tricks via client-side programming. The entire page (or a detail frame if you're using frames) needs to be sent back to the server for processing.

When you "click on another result" what happens - paste the actual link here.
Replied 13 Apr 2004 17:39:09
13 Apr 2004 17:39:09 Jon McGee replied:
www.bioscience.co.uk/New/revised_mainpage.asp (it's very rough at the moment).

Type 'mouse' into the search and hit return. The results page will appear and you'll see the detail layer on the right. It shows the detail for the first result.

So now say, if you click on 'result 4', I want the detail for 'result 4' to appear in the detail layer.

Thanks.



Edited by - jonny mags on 14 Apr 2004 12:13:45
Replied 14 Apr 2004 17:01:45
14 Apr 2004 17:01:45 Phil Shevlin replied:
OK. A quick suggestion comes to mind. Why not create 2 recordsets.

One for the search results - as it exists now.

The second for the detail layer. By default this layer will load the first (or random) record.

Then when clicking 'result 4' the entire page reloads. The first RS stays the same. The second loads the new detail record.
Replied 14 Apr 2004 17:02:31
14 Apr 2004 17:02:31 Jon McGee replied:
Thanks for the advice, The second Recordset works and the infor is passed to the detail layer when the page reloads . . . one slight snag now - when the page reloads I lose my search results!



Edited by - jonny mags on 14 Apr 2004 18:06:33

Reply to this topic