After I update JQuery autocomplete plugin (jQuery UI Autocomplete @VERSION), I found one issue. The issue is as follows. When I type "jua" in the autocomplete field. Four matches are returned for users with the first name juan. Then add an "n".Only the first match remains in the list. I have come out from this issue by changing the parameter cacheLength:
0 in place of 1.
$field.autocomplete({
url:ac_url,
cacheLength:1,
For the autocompletion data, it reads from the configuration files.Say in the files the data are in this way.
[code]...
It works for previous issue, But creates another problem, If i change cacheLength to 0 then if i add some new name in the configuration file then it is not taking that updataed data. If i change to 1 then after i type "juan" it displays the last one. That is "juanw" and it not displays the other 4name.
we have a piece of code which does some XML manipulation and it broke in IE (at least 7) between jQuery 1.5 and 1.6.At this link is the chunk of code running on 1.5.2:[URL]and at this link is the same exact code on 1.6.1 and erroring in IE: [URL]On the second link, IE is reporting an error down in jQuery for invalid number of arguments to a method. The second alert never shows.
Does anyone have a library or patch to call a handler if a user leaves an autocomplete field without choosing one of the autocomplete options - i.e. they've entered free text. I'm working with an app that populates multiple fields from a single auto-complete value, and our latest requirement is to clear out a bunch of fields if the user's entered something manually - rejecting autocomplete suggestions. My initial attempts at hooking into onkeyfoo and onblur haven't lead anywhere productive, and I'm hoping someone else has managed to overcome the gnarly event and timing dependencies involved with onkeyfoo and blur being used for standard autocomplete behaviour.
function showData(id) { $.get("/url/getdata", {id : id}, function(data) { $("#dialogData").html(data);
[code]....
no longer work with the addition of 1.5.Looking at firebug, the correct data is returned, but the function breaks after entering the callback.Everything simply stops.I read about the changes to Ajax call in 1.5, but I have over a thousand such calls through my project -> I cannot even begin to think about hunting them all down and changing them, let alone bug testing it all.
See this fiddle. [URL]. Hover over the circle, and note the mouse enter/leave notifications.
Now try this:[URL] This is the same code in 1.6.2. The hover events no longer work.
I don't believe this is related to the jquery.svg plugin, since the bug originally happened to me using the highcharts library, which creates and adds svg elements itself. I merely used jquery.svg for convenience in making the example, as I know little about svg.
This seems a bug to me, but I wanted to make sure. Is this a known and expected change in behavior?
I'm using this jQuery slider code that my coworker and I manipulated so that 3 images slide at a time. It worked great till we updated our jQuery to 1.6.2 from 1.3.2 (we were going to go with 1.7.1 but now that we've encountered this problem we have to hold off). I went all the way back to 1.4.1 and it works okay but not as bad as the latest versions.
I included ALL the code. You can literally copy this whole thing into a blank page, save it and test it. It's not really working as expected right now. It doesn't slide all the way back to 1 and there's an empty slide after 9. I will work with my coworker to debug it more but I want to know why versions 1.4.3 through 1.7.1 break it.
I have found two jquery plugins and i am trying to combine an action but to no avail. what i want to do is after selecting an item from the auto complete box i would like for it then to do a change function and retrieve details. Here are my 2 pieces of code.
Note: There is considerable background detail here, but I do have three questions, which are clearly marked and appear right before the sample code.
I have a legitimate need to launch an EXE from an HTML page on Windows XP/Internet Explorer. The EXE is already locally installed, and the HTML page is also viewed locally on the PC- it's not a web site. I know of two ways to do this, both of which are featured in the sample HTML file at the bottom of my post.
The first method, using the Shell.Application ActiveX Object, used to work until I installed the latest critical Windows XP patches from Microsoft. Before these patches were installed, you could click the ‘Launch Notepad.exe' button in my sample HTML file and the program would start right up. (Note that my Internet security settings are always at Medium, my Local intranet security settings are at Medium-low, and I've never had to mess with the individual ActiveX security settings to get this code to work.)
However, one of the following critical updates has broken the ‘Launch Notepad' code. It doesn't matter what my Internet/intranet security settings are, or whether I've enabled unsafe ActiveX scripting. My list of suspects is: KB842773, KB840315, KB841873, KB839645. (I have four computers running Windows XP SP-1 at my desk, and each has the same version of Internet Explorer installed- 6.0.2800.1106.xpsp2.030422-1633. The Launch Notepad code stopped working on two of them this week, and still worked on the other two. As a test, I ran Windows Update on one of the working systems and found that after the patches were applied, my code no longer worked. I even restored that machine's pre-patched ghost image and confirmed that the code worked again. Next, I ran Windows Update a second time, and allowed the aforementioned patches to be installed. Again, it broke my code.)
You can confirm whether you have these patches installed on your machine a number of ways, but perhaps the easiest is to open your Windows folder and look for ‘$NtUninstallKBxxxxxx' folders with names matching the patches I listed.
And then there's the second method, used by the ‘Launch Regedit.exe' button. While this will actually still launch the EXE file, it's undesirable because it always prompts you with a dialog that starts out "An ActiveX control on this page might be unsafe…" Note that this even happened before the patches, again regardless of the Internet/Local intranet security settings.
* QUESTION 1: Is there any way to get ShellExecute to work again once the new critical updates are installed?
* QUESTION 2: Failing that, how can I get around the unsafe control warning with the Wscript.Shell method, for a local HTML file that's trying to launch a local EXE?
* QUESTION 3: Is there any OTHER way for an honest guy like me to launch a local EXE from a local HTML file?
Thanks, and here's the sample HTML file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script type="text/javascript" language="JavaScript">
function LaunchNotepad() { var launcher = new ActiveXObject("Shell.Application"); launcher.ShellExecute("Notepad.exe", "", "", "open", "1"); }
function LaunchRegedit() { var launcher = new ActiveXObject("WScript.Shell"); launcher.Run("Regedit.exe"); }
I have autocomplete showing up where I type into the textbox but when I try to select one with my mouse or keyboard it does not fill in the textbox with the option selected. Code is below. < script type="text/javascript"> $( function() {[code]....
I am using telerik autocomplete in my application, I want to create the another autocomplete when i click the add button using jquery, can any help me in solving this issue.I need the jquery to create the autocomplet.
I have a jQuery autocomplete application where the user types a query into a text box and autocomplete suggestions are returned. (It's working fine.) I would like to restrict the suggestions that are returned by passing the value of the selected option from a drop-down list (#deptField3) to the PHP script that does the autocomplete look-up.
I want to use these items in the following autocomplete script, but it is not working... How do I get it to recognize the array values? I am sure it has something to do with how I call the variable $given_themes...
I have found two jquery plugins and i am trying to combine an action but to no avail.what i want to do is after selecting an item from the auto complete box i would like for it then to do a change function and retrieve details. Here are my 2 pieces of code.
I have a coldfusion data component that receives two arguments and runs a stored procedure and returns a large data set. I want to use a textbox with autocomplete its data is that result set. I do not want to convert the result set to an array for performance.
I am using the autoupdate plugin. I have a listbox(asp.net control ) just below the autocomplete textbox. In IE6, the autocomplete menu goes behind the asp.net control. This happens only in IE6. It works fine in IE7.
I am using JQuery Autoplugin 1.1, I want to activate the autocomplete on a text box on click of a button besides the box.Currently I am trying to use the following option, but it is not working.
Here try is the id of button and try1 is the id of text box
I have a autocomplete box using this plugin[URL]... Returns results no problem. I can't get my head round how to add an event when a selection is made. Basically when someone selects one of the autocomplete options I want to redirect to a specific page (index.php?cms&p=tpl&s=edit&tplid='id of selected option')
I am trying to create a web application using ASP.NET MVC and I want add auto complete functionality to one of my text box. So I have added below C# code into my HomeController class to return the data as JSON objects.
public class HomeController : Controller { public ActionResult Index()
I am new to jQuery and I am trying to create an autocomplete textbox. When I use a small test database, it works fine but when I use my production database with over 3000 records, it slows to a crawl. It take >20 seconds to load the page and with each letter I type (even though I set minChars to 3), the browser times out asking if I want to continue running the script. My feeling is I need to use AJAX but I have never done that and don't know how to. I code in classic ASP with an Access database. Can anyone provide some sample code how to do this. Unfortunately I am under a time pressure to complete this project.
I am able to attach to a Telerik text box and autocomplete works fine when i am selecting a result and pressing ENTER. However, when i am selecting a result and clicking on it with a mouse, the selection populates the textbox and then quickly gets erased.