jquery-autocomplete

Redirecting users on select from autocomplete? [solved]

Hi, i'm trying to implement the jquery autocomplete plugin. I've got it up and running, but something is not working properly. Basically i have a autocomplete-list of employees. The list is generated from a table in a sql-database (employee_names and employee_ID), using a VB.NET handler (.ashx file). The data is formatted as: employee...

Using 2 JQuery Autocomplete

Hi All! I am using the JQuery Autocomplete Plugin 1.1. When I try to add autocomplete to 2 inputs in this way: $("#object_ac").autocomplete("autocomplete_search.php", { extraParams: {object:1}, width: 160, selectFirst: false, minChars: 2 }); ...

Trying to get JQuery Autocomplete working on Asp.Net page.

Can someone shed some light on the problem please: I have the following: $(document).ready(function () { $("#txtFirstContact").autocomplete({url:'http://localhost:7970/Home/FindSurname' }); }); On my Asp.Net page. The http request is a function on an MVC Controller and that code is here: Function FindSurname(ByVal surna...

Autocomplete jQuery 1.8-UI JSON Format

I'm toying with the new autocomplete in jQuery 1.8-UI. I've provided data in the following format ["val1", "val2", "val3"] This is coming from a stored procedure but output as a string. For some reason this doesn't work at all, however, if I supply the same data using a javascript variable var data = ["val1", "val2", "val3"]; The...

Do you know why introducing jquery ui autocomplete for my dropdown boxes is also changing my listbox ?

I am trying to change my comboboxes to use autocomplete so i leverage the code listed here (which worked perfectly for my dropdowns) The issue is that i also on the same page have a listbox with the following code: <%= Html.ListBox("Cars", Model.BodyParts.Select( x => new SelectListItem { Tex...

jQuery AutoComplete Plugin not working for JSON Response (sValue.substring is not a function)

I'm trying to use the autocomplete plugin for jQuery (this one http://docs.jquery.com/Plugins/Autocomplete). My server is returning JSON string, which I'm trying to process on the client via AutoComplete plugin's 'parse' and 'formatItem' parameters, like so: $(document).ready(function() { $('.searchBox input.textbox').autocomplete('...

Help with handling jQuery autocomplete result?

I need to split the string result of the autocomplete plugin. I know how to split the string and what not, but don't know how to do it in context of the plugin. Here is what I have thus far. Any help would be greatly appreciated: <script type="text/javascript"> $(document).ready(function() { $('.divAutoComplete').autocomp...

jQuery UI Autcomplete: POST instead of GET

jQuery UI Autcomplete: How can I POST the term to the search script instead of GET? ...

Jquery Autocomplete plugin with Django (Trey Piepmeier solution)

So, I'm basing my code on Trey's solution on: http://solutions.treypiepmeier.com/2009/12/10/using-jquery-autocomplete-with-django/ The script is: <script> $(function() { $('#id_members').autocomplete('{{ object.get_absolute_url }}members/lookup', { dataType: 'json', width: 200, ...

JQUery autocompleter not working properly in IE8

Hi everyone! I have some script which is working in firefox and chrome but in IE 8 I get this error: $.Autocompleter.defaults = { inputClass: "ac_input", resultsClass: "ac_results", loadingClass: "ac_loading", minChars: 1, delay: 400, matchCase: false, matchSubset: true, matchContains: false, cacheLen...

JSON and jQuery.ajax

Hello, im trying to use the jQuery UI autocomplete to communitate with a webservice with responseformate JSON, but i am unable to do so. My webservice is not even executed, the path should be correct since the error message does not complain about this. What strikes me is the headers, response is soap but request is json, is it suppose...

jQuery autocomplete for dynamically created inputs

Hi all! I'm having an issue using jQuery autocomplete with dynamically created inputs (again created with jQuery). I can't get autocomplete to bind to the new inputs. Autocomplete $("#description").autocomplete({ source: function(request, response) { $.ajax({ url: "../../works_search", ...

jQuery Autocomplete plugin - How to dynamically update data list?

Hi, I am using the jQuery autocomplete plugin for a smart input box. I want the first parameter in the input box to be autocompleted from one dataset, then once that has been selected change the dataset for the second parameter. So if I have the following: var foo = ['a','b','c']; var bar = ['x','y','z']; $("#input_box")....

jQuery Autocomplete doesn't work in copy event (on-change)

Hi, I use jQuery Autocomplete plugin. http://docs.jquery.com/Plugins/Autocomplete I use it for an employee list. Once an employee is selected from the list, a hidden field is set with that employee's ID. But if I copied and pasted an employee or manually type employee name (without selecting from the list), the hidden field is not set...

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...

Jquery autocomplete on / off functionality

Hello everyone, I am working on website (built using PHP, Mysql, Jquery) which require that admin set a variable in configuration and according to that configuration variable Jquery autocomplete is enabled or disabled to all website. Is there any way to achieve that functionality. Please help me, its very urgent........ ...

jQuery Autocomplete using extraParams to pass additional GET variables

I am referring specifically to the jQuery Autocomplete v1.1 plugin by Jörn Zaefferer [source: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/] as there seems to be quite a few variations of this plugin. I'm trying to pass additional parameters to the server when the user starts typing because I have multiple fields that...

jquery autocomplete filtering?

I want to filter the autocomplete results based on the selected option in a select input. sample json data: [{"ContactId":"8590051631","ContactType":Company,"Name":"Test },{""ContactId":"8590049225","ContactType":Person,"Name":"TestName}] here's my markup <div> <select class="type"> <option>Person</option> <option>Company</option> <...

appendTo and other dom manipulators problems in IE7/IE8

I've a strange behaviour with jquery ui autocomplete and IE7/8. The default behaviour of autocomplete is to create a UL and append it to the BODY of the page. In my case i want to append this UL to the DIV that also has the INPUT (where the autocomplete is triggered). So i've done this: (function($) { $.widget("ui.combobox", { ...

jQuery Autocomplete problem - Shift Key behaves same as Return Key

See: http://www.airbnb.com/ In the search bar, start typing "san f" (no quotes, all lowercase), then hit Return (or Enter). "San Francisco" is autocompleted. This is good! Now clear the search field and start over. type "San F" and boom - "San Francisco" is autocompleted as soon as you hit Shift. This is not expected. This happens in ...