jquery-ui-autocomplete

jQuery UI autocomplete not working in IE

Hi all, I've got the new autocomplete widget in jQuery UI 1.8rc3 working great in Firefox. It doesn't work at all in IE. Can someone help me out? HTML: <input type="text" id="ctrSearch" size="30"> <input type="hidden" id="ctrId"> Javascript: $("#ctrSearch").autocomplete({ source: "ctrSearch.do", minLength: 3, focus: f...

Clear form field after select for jQuery UI Autocomplete

I'm developing a form, and using jQuery UI Autocomplete. When the user selects an option, I want the selection to pop into a span appended to the parent <p> tag. Then I want the field to clear rather than be populated with the selection. I have the span appearing just fine, but I can't get the field to clear. How do you cancel jQue...

what is the best way to refresh the data list on a jquery autocomplete combobox

i am trying to refresh a autocomplete combobox coming from jquery ui as i am getting a new list via ajax. the combobox looks fine on startup but when i refresh the combobox via jquery / ajax, it turns it back into a normal combobox here is the jquery code: $.get('/Tracker/RefreshList', function(data1) { $('div#exercises'...

jQuery autocomplete disabled makes autocomplete partially transparent, not disabled

I'm using the jQuery UI's "autocomplete" function on a search on my site. When you change a radio button from 'area search" to "name search" I want it to disable the autocomplete, and re-enable it when you switch back. However, when you disable the autocomplete it doesn't hide the dropdown, it just dims it to 20% opacity or so. Here's my...

Is it possible to set the width of a jquery autocomplete combobox

i am using this jquery ui combobox autocomplete control out of the box off the jquery ui website: my issue is that i have multiple comboboxes on a page and i want them to have different widths for each one. i can change the width for ALL of them by adding this css: .ui-autocomplete-input { width:300px; } but i can't figure o...

Can you restrict entering invalid keystrokes with jquery ui autocomplete combobox

when using the jquery ui autocomplete combobox, i would thought there would be an option to force only valid key entry based on the list. Is there anyway to not allow invalid keys so you can only enter valid items in the list? also, is there a way to set a default value of the combobox. if my list has (csharp, java, python) i can sta...

Undefined Results in jQuery Autocomplete

So I've got the latest versions of jQuery and UI running. I'm using the basic autocomplete invocation and returning valid JSON (validated via JSONLint). $("input#cust_id").autocomplete({ source: yoda.app.base + "/assets/cfc/util/autocomplete.cfc?method=cust", minLength: 2, select: function(event, ui) { ...

JQuery UI Autocomplete showing as bullets

The JQuery UI Demo page for autocomplete (link) has a nice looking search box and drop down with nice colors and highlights and such. When I implement it for myself, I end up with a bulleted list. How do I get my drop down of suggestions to look like theirs? A few notes/code fragments: I'm working in .NET land, so I'm using the <asp...

how do set a default value with jquery autocomplete combobox.

when using the jquery ui autocomplete combobox, can you set a deafult value of the combobox ? ...

Formatting the jQuery UI autocomplete results in a table

I'm now using http://jqueryui.com/demos/autocomplete/ based on some previous recommendations and it's working well for me. I am looking to format the results in the auto-complete list in a table. Right now my results are something like: Last name, first name - id number - status code When there is a list of names nothing lines up ni...

jquery ui autocomplete not working in ie8 (until page refresh)

Hello all, I am using jquery ui autocomplete it is working absolutely fine in all browsers except ie8. I have been doing some testing and there seems to be a strange bug. When I click on a link leading to the relevant page there is the following error generated by ie8 when I start typing in the autocomplete box: 'object doesn't support...

JQuery UI popup elements not positioning correctly

I am using both JQuery UI Dialog and JQuery UI autocomplete both have the same erroneous behavior when they popup, the position is always 0,0! I have tried some different position arguments when popping up the dialog but non seems to help. Any clues? Is this a bug in the position calculation in JQuery? Or is this some css bug? Version...

Is there a way to force a user to select an autocomplete value before they can submit the form?

I am using the jqueryui autocomplete feature to allow the user to select their location. I need to make sure they select a location from the autocomplete before they can submit the form. I don't want them to be able to submit the form before they select a value. My solution is after they submit make sure that the value found is in the...

how to precompile a jquery ui autocomplete widget?

Hello, I have a jquery ui autocomplete widget in a form and I'd like to preselect its value from a database. My autocomplete works in the following way: the id is a number, tha label and the value are the same and are a concatenation of id + " - " + description. When a value from the autocomplete is selected, a hidden field's value is se...

jquery-ui autocomplete with ASP MVC suggestions not displaying

I have been trying to get a simple example of the jquery-ui autocomplete to work. I have a controller setup to handle the query, and it returns the json that looks to be in order, but I am getting no suggestions showing up. Here are the js libraries I am including: <script type="text/javascript" language="javascript" src="/Script...

jQuery UI Autocomplete stopped working.

For some reason jQuery UI's autocomplete has stopped working for me. I get the same error as is described on this webpage. I've copied the content of the query from that webpage below, hoping that somebody here will be able to answer it. Thanks! I am using Jquery UI Autocomplete to get a list of names. But for some reason I am get...

Autocomplete on a LDAP Search form

Hi everyone, I'd like to know whether it's possible to implement autocompletion on a search form which is querying a LDAP directory. I'm creating a small widget that allows users to look for people in the LDAP directory and then display information such as phone number etc. There's a lot of people in the directory, so it would be nice...

jQuery UI Autcomplete - hyperlink results

By default the jQuery U Autocomplete produces a list of results, upon clicking on a result it will populate the text field with the clicked result text. I would like to change this behaviour, so that when clicking on a result it will take you to that result's page. To generate the hyperlink I can pass in the ID of the result. I'm using...

Customizing jQuery UI Autcomplete

I want to make a few customizations to jQuery UI Autcomplete: 1) If there are no results found it should output "no results found" in the list. 2) Is it possible to highlight/bold the letters in the results as they are being typed? For example if I type "ball" and I have "football" in my results it needs to output as foot ball 3) Is i...

jquery UI autocomplete inside a modal ui dialog - suggestions not showing?

i am using the jquery ui autocomplete widget inside the jquery ui dialog. when i type in the search text, the textbox indents (ui-autocomplet-loading) but does not show any suggestions. var availableTags = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "perl"]; $("#company...