I would like to have a "Quick Search" feature for my users. The way I imagine it functioning is a user clicks the "Search" link in my menu, and a lightbox opens with search form. This search for would auto-populate with results as the user types letters. And clicking a result will take the user out of the lightbox and to the page they want to visit.

I can do the search part with Inline Ajax Seach. The problem I'm having is as follows:

  • Using rel="lightframe", clicking a search result open the link in the same iframe and not like a normal page
  • Using rel="lightmodal", javascript doesn't appear to load and the AJAX search doesn't populate search results.

What can I do to get this working properly?

Comments

svdhout’s picture

Status: Closed (won't fix) » Active

I am having the same problem.
I want a "select your language" interface to pop up when no language is selected (no language cookie found).
After clicking a language, this has to create the language cookie, but no javascript gets executed in lightmodal.

I'm using behaviors to add the click events to the links inside modal, but no behavior is fired, when the lightmodal box opens.

I figure there should be a Drupal.attachBehaviours() call somewhere after the lightmodalbox gets opened, but i didnt' quite figure out yet where this could be patched.

If i figure out how to fix this, i'll let you know

stella’s picture

Status: Active » Closed (won't fix)

I've no plans on implementing this feature any time soon. I recommend checking out the Popups or modalframe modules.

Isostar’s picture

Version: 6.x-1.9 » 7.x-1.x-dev

As far as I know there are no alternatives for popups or modalframe in D7. (Both have no D7 version)

I tried to get js working in combination with lightmodal by triggering Drupal.attachBehaviors(), but this doesn't seem to work. Any idea why? Any suggestion to try?