Click to See Complete Forum and Search --> : search criteria


XTI
01-11-2007, 11:13 PM
Hello ppl
I have a sql query which turns out results no problem, then user clicks on a specific id number and see full details for that record. So far so good. But then the user might want to go back to its list and see another items and not do this with the BACK button. Which means I have to save the search criteria somehow and show the search results.
This has to be very simple but I have never done it and am wondering what are different ways of doing this?
Any suggestions welcome.
XTI

NightShift58
01-12-2007, 02:11 AM
One option, though not very "elegant", would be to open a new window to view the detailed data. Put a button/link on there somewhere to enable the user to close the window.

The listings page will still be where it was when he started viewing the detail page.

ava
01-12-2007, 03:45 AM
The easiest solution is to put all descriptions on the page and set their display to hidden. When a user wants to see a description, all you have to do is set the display on/off. It's not really recommended for very large lists though as the page will have to load everything in advance.

The most elegant solution seems to be AJAX. AJAX allows Javascript to call PHP without reloading the page.