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!
pdclark
Member
Posted 8 months ago #
Yes, but it's somewhat advanced javascript programming. Using jQuery, you would:
- Attach a function to the search form submit event. Return false to keep the form from submitting.
- Serialize the form data with $.serialize()
- Attach the form data to the action URL
- Pass the full query URL to a lightbox implimentation that allow programmatic calls and supports iFrames.