How to save search, choose a recent search and then populate the form using jQuery and/or asp.net

Posted by user187870 on Stack Overflow See other posts from Stack Overflow or by user187870
Published on 2010-05-02T03:05:14Z Indexed on 2010/05/02 3:17 UTC
Read the original article Hit count: 291

Filed under:
|

I want to do something similar to what priceline does. It saves the recent searches in a dropdown menu. When you pick one from the recent search. The form will be populated accordingly. (See screen shot http://yfrog.com/5fscreenshot20100501at105p)

This is what I am thinking. (1) Save the searches into an array in a cookie (2), when a recent search item is chosen, retrive the corresponding array element from the cookie and then populate the form. What do you think is the best way to implement this? I especially want to know how to save the form entries into the cookie and how to populate the form.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ASP.NET