Search Functionality

Posted on 2011-04-22
Last Modified: 2012-05-11

We have a user search page and search results page. From the Search Results page, user can go to a different pages (probably 3 or 4 other CF pages) of the website in the same window.

Right now we don't have the functionality or links to come back to the search results page from the other pages user has visted. So, basically I am looking to have a link on the pages to go back to the search results page where the user left from.

So, what is the best way to accomlish this? Appreciate your inputs on how to do this.

(Note : Not using any CF advanced techniques since the current code is based on CF 5.0)

Thanks in advance.
Question by:Tpaul_10
    LVL 9

    Accepted Solution

    Do you have a database behind your application? If so, I can share what I do with my own app to create this functionality:

    ------> SEARCH
               Delete any existing search results with same session id. Add all search results to table with session ID
               (to allow multiple searches simultaneously)
               Search results page displays results for that session with links to corresponding detail pages. If session
               is expired, returns to SEARCH page.
    ------> RESULTS DETAIL
               Go to results details page(s). Each details page includes link to search results page using session ID. If
               session ID is expired, return to SEARCH page.
    ------> CLEANUP
               When session expires, delete all search results for that session.



    Author Closing Comment

    I have DB and making it work.

    Thanks again for ur help.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    This article  is about submitting  form through  ColdFusion.Ajax.submitForm to the action page and send a response back in JSON format which later can be decoded using ColdFusion.JSON.decode. By this way you can avoid the usual page refresh for subm…
    Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video discusses moving either the default database or any database to a new volume.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now