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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 3479

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: 3479


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: 61224
    
  66

Are the callbacks being triggered?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

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: 3479

I was typing wrong selectors.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to show different panels depending on Autocompleter output?