Active
Project:
Lightbox2
Version:
7.x-1.x-dev
Component:
Javascript
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2010 at 23:23 UTC
Updated:
23 Sep 2011 at 00:43 UTC
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:
rel="lightframe", clicking a search result open the link in the same iframe and not like a normal pagerel="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
Comment #1
svdhout commentedI 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
Comment #2
stella commentedI've no plans on implementing this feature any time soon. I recommend checking out the Popups or modalframe modules.
Comment #3
Isostar commentedAs 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?