jquery-ui-autocomplete

How can I change some items (option) colors in the returned list?

How can I change some item's (options) colors in the returned list? I need to change the color based on if they can use the item. If the color is red, the program won't allow them to select it or will give an error. Thank for any help on this. ...

jQuery Auto-complete fails to select first element after update panel update

There are a number of posts about getting jQuery controls to work around update panels, the most notable being http://stackoverflow.com/questions/1106029/asp-net-jquery-autocomplete-textbox-not-responding-after-first-search, but I haven't been able to find anything discussing the behavior that I'm seeing. I've been able to rebind the au...

jQuery UI AutoComplete Passing input data

I am sure this has been asked a ton of times, but would appreciate some assistance. I am trying to setup the jQuery UI, which I can get a static result list with from JSON. But I need to pass my INPUT value onto the PHP script to that it can actually filter the results. My Code for the Input Field <input id="search" /> My Code for...

How do I combine multiple events in a jQuery UI autocomplete?

In the code below, I have the same function on three different events (focus, select, change). This seems redundant but I can't figure out how to combine the three into one. Thanks in advance for any ideas! $("input[name^='addSchool']").autocomplete({ source: function (request, response) { var temp = $("input[name^='addSchoo...

jQuery UI Autocomplete with hybrid text/id search

I'm having a lot of trouble making jQuery's autocomplete widget work for me. I am using a list of key/value pairs from a server. I have the following requirements: If the user selects a value from the widget, I want to pass the ID to the server. If the user doesn't select a value and enters raw text, or modifies a value that has alr...

jQuery ui autocomplete bug when it has a scrollbar

I tried testing it with the old jQuery autocomplete plugin demos and now, I see it again in jQuery UI autocomplete. The autocomplete displays a long list of suggestions and it has a scrollbar. When I mouseover on a suggestion while pressing the up and down arrow keys, autocomplete returns to the suggestion with the mouseover on it an...

jQuery.UI.autocomplete widget, automatically role up the list instead of roling down if there isn't enought room

Hi, I'm using jQuery.UI.autocomplete widget. The textbox which autocomplete widget is bound to is located almost at the bottom of the page (form) so when user starts typing in there, the list roles down out of screen so you have to scroll down the page in browser to see the complete list while there are plenty of room above the textbox....

jQuery autocomplete - clicking submit button does not count as "change".

Yeah, this is indeed my third or fourth question about jQuery UI Autocomplete. My latest annoyance is that clicking the 'submit' button in a form does not seem to count as a 'change' for jQuery. When my input box changes, jQuery runs some javascript to force a match against a list of acceptable inputs and their values: jQuery("#Resource...

jquery-ui autocomplete does not select on enter

Hello, I have used the jquery-ui to autocomplete an input box and set a hidden value from the selected item. This I did using the select: function(event, ui) { ...$("#myDiv").val(ui.item.value)... } option (might be wrong now, don't have the code at hand, but it works up until my question...) It works when select an item from t...

How to at least display an item in JqueryUI autocomplete panel when no result found

I'm trying to force the jqueryUI autocomplete's panel/list to at least display a default item (such as "Add New Item") when the no match has been found. The item must be able to bind with some event-handler too. So far I had tried overcome this problem by adding a pseudo AC panel when the real AC panel is found hidden. I'm also wonderi...

jQuery UI Autocomplete - highlight letters

Is it possible to highlight/bold the letters in the results list 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 ...

Posting value to server using jquery ui-autocomplete and jeditable

Hi everyone, I recently upgraded jQuery to 1.4.2 and jQuery-UI to 1.8.2. Mistake or not, I started pulling my hair when I tried combining the new ui-autocomplete (not the old one from bassistance.de) with jeditable. When I edit a field in my page (usually a span with a unique ID), user starts typing the name of someone and I manage to ...

Using html in jQuery UI autocomplete

Before jQuery UI 1.8.4 I could use html in the JSON array I built to work with an autocomplete. I was able to do something like: $row_array['label'] = '<span style="color: red; font-family: courier;">User, Name</span>'; That would show up as red text in the drop down. As of 1.8.4 that does not work. I found http://dev.jqueryui.com/...

I'm having trouble with jquery-ui autocomplete and slider on the same form (z-index) related.

I'm attempting to create a web page using the jQuery ui lib. My design uses a jQuery ui autocomplete on an input field at the top of a form. Immediately below this autocomplete input form are some jQuery sliders. The issue is that when the auto complete box populates the results are displayed behind the handle of the slider control. This...

C#.NET Webservices using HTTPGET Returns System.IndexOutOfRangeException

I've setup this example web service to investigate the source of my error: namespace userControlPanel.webservice { /// <summary> /// Summary description for WebService1 /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.Compone...

Custom search function for jQuery UI Autocomplete

I'm using jQuery UI Autocomplete. Is there a way to override its default search algorithm? The changes I want to make are: Prioritize words that start with the search term at the top of the suggested results. Return a maximum of 5 results (instead of the default behavior, which is to return all matching results, potentially creating ...

How do I pass an extra parameter to Jquery Autocomplete field?

Hi, I'm using the JQuery Autocomplete in one of my forms. The basic form selects products from my database. This works great, but I'd like to further develop so that only products shipped from a certain zipcode are returned. I've got the backend script figured out. I just need to work out the best way to pass the zipcode to this script...

Not sure how to use the JQuery UI Autocomplete ... :(

Hi folks, this is a continuation from a previous JQueryUI Autocomplete question, I asked. This time, I have my data returning ... but I have no idea how i define what html to show and how to dynamically update that html with my results. So, here's my jquery .... Home.js function AutoComplete(element) { var cache = {}; $(elem...

put the word "suggestions" in autocomplete box just like google

I want put the word "suggestions" in autocomplete box just like google does. How do I do that? Here is my auto complete page http://www.maxihealth.com/test/autocomplete.html ...

jQuery AutoComplete does not show up

Hello, Inside a jquery dialog I would like to use the jquery autocomplete feature of jqueryUI. I have then prepared an action in my Controller (I am using ASP.NET MVC2) that is as follow public ActionResult GetForos(string startsWith, int pageSize) { // get records from underlying store int totalCount = 0; string whereClau...