Forums

Search Results in Thickbox or Fancybox? (2 posts)

  1. orionis23
    Member
    Posted 8 months ago #

    Is it possible? The idea would be that the search form would load results into a thickbox or fancybox while remaining on the same page where the search was entered, instead of loading the search results template as a new page.

    Or to put it another way, the search.php file itself with the search query fed to it would be opened in a modal box upon submission of the search form.

    Thanks for any insights!

  2. pdclark
    Member
    Posted 8 months ago #

    Yes, but it's somewhat advanced javascript programming. Using jQuery, you would:

    1. Attach a function to the search form submit event. Return false to keep the form from submitting.
    2. Serialize the form data with $.serialize()
    3. Attach the form data to the action URL
    4. Pass the full query URL to a lightbox implimentation that allow programmatic calls and supports iFrames.

Reply

You must log in to post.

About this Topic