How to implement: "Recent Searches" and "number of searches" per hour in my script?

Discussion in 'JavaScript' started by razz.jazz, Feb 18, 2011.

  1. #1
    So I have a search on my site using JS. I am trying to figure out how to implement a "Recent Searches" category and "number of searches per hour" into my main page so people can see those.
     
    razz.jazz, Feb 18, 2011 IP
  2. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #2
    Hi,
    Using js you won't be able to store the searched term, and if you cannot store, you cannot retrieve it.
    You'll need an Ajax function to pass the searched term to a "server side" scriptting language like php, or asp etc.
    That script can store the term along with the time, and then both these menus will be possible.
    Thanks
     
    JEET, Feb 20, 2011 IP