aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes How to show different panels depending on Autocompleter output? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to show different panels depending on Autocompleter output?" Watch "How to show different panels depending on Autocompleter output?" New topic
Author

How to show different panels depending on Autocompleter output?

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3359

Hi,
I have a page that contains only a jQuery autocomplete textfield.
If the user performed a search and selected an item from the drop down list, a gird is shown under the autocompleter should appear smoothly containing the the data of the the selected item.
On the other hand if no data is found, a panel should appear smoothly under the autocompleter contains a couple of buttons and text.

Any tips on how to achieve this is highly appreciated.
Thanks for help and time.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3359


Well actually none of the panels are shown or hidden.
What I'm missing?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56230
    
  13

Are the callbacks being triggered?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3359

yes they callbacks are being triggered.
I'm reading http://api.jquery.com/show/ and it says:
Note: If using !important in your styles, such as display: none !important, it is necessary to override the style using .css('display', 'block !important') should you wish for .show() to function correctly.

I'm using a CSS framework called 52Framework to layout my pages so maybe !important holds the clue.
I even tried to show or hide one of the panels outside any trigger code, still not working.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3359

I was typing wrong selectors.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to show different panels depending on Autocompleter output?
 
Similar Threads
Autocompleter
A bug in Autocompleter ?
Struts2: Help in autocompleter tag
issue with datetimepicker & autocompleter in struts 2
Struts Dojo autocompleter