Search saving

25/02/11

Permalink 11:42:24 am, by jamie, 148 words, 49 views   English (CA)
Categories: Activity Log; Mins. worked: 75

Search saving

Wrote a simple function to save the current search parameters so that the same results can be seen at a later date. This is the flow:
  1. User clicks on "Save Search" link at bottom of results
  2. Javascript function intercepts the link and sends an AJAX request to includes/helpers/save_search.php
  3. The save_search script loads the Search class
  4. The Search class in turn grabs the search params from the session, and saves a new record to the saved_searches table, and then returns the ID of the saved search record
  5. The save_search script returns a URL that can be used to access the saved search, which is just the search script (search.php) with a 'saved_search' GET parameter equal to the ID of the newly saved search
  6. The Javascript function informs the user of the successful save and provides them with the URL
  7. Success!

Pingbacks:

No Pingbacks for this post yet...

Capital Trials at the Old Bailey

Simon Devereaux has approximately 10,000 records of people convicted in potentially capital cases between 1710 and 1840 in London heard at the Old Bailey court. This project will create a web-based database which will allow interested researchers and members of the public to compose queries on that data (e.g. women charged with robbery 1710-1720). It must be able to support a range of queries and produce output allowing researchers to identify trends in judicial practice over that time.

Reports

Categories

May 2013
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

XML Feeds