dcparker / jquery_plugins Goto Github PK
View Code? Open in Web Editor NEWJust a collection of my jquery plugins.
Just a collection of my jquery plugins.
If for example you have a list of "ABC1", "ABC2", "ABC3". And the query you entered is "ABC", the results will be ordered 3 2 1 instead of 1 2 3 (I assume you give back 1 2 3).
This is because the indexOf('ABC') is always '0'.
This case is valid for the 'contains' algorithm.
I solved this by adding an option parameter "Don't sort".
Tab should complete the entry from the selected item. Blur seems to act correctly, but tab is losing the value.
If you select some item form a converted select it will set the value of the hidden original field to the value of the selected option (as desired)... however if you delete the data in the quickselect then the value of the hidden field remains the same as it was previously (not as desired). This is happening on a quickselect that is set as must match with an included blank option.
If two options that are about 13 characters long are matching from the beginning but different at the end then the result takes a substantial amount of time... When the number of continuous matching characters approach 20 then the browser will ask you want to stop or continue waiting for the script.
Message from firefox:
A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.
Script: {path_to_js}/quicksilver.js:92
The quotes $(‘input#city_name_field’) --> ’ has to be replaced with normal quotes '.
Error in the Syntax (url has to be replaced with ajax):
Wrong: $(‘input#city_name_field’).quickselect({url:‘/ajax/cities.json’});
Right: $(‘input#city_name_field’).quickselect({ajax:‘/ajax/cities.json’});
First of all NICE WORK !!
The results DIV should be hidden on load of the page but in IE7 it is displayed. It goes away when you start typing. Doesn't happen in Google Chrome 4.0.249.89
Screenshots: http://img38.imageshack.us/g/fase3ieversion.jpg/
FYI: sample page doesn't load either, crashes since you try to load the plugin before the DOM is loaded so placing the javascript code at the bottom of the page solves that error
If you don't type the number of chars required by minChar within the delay time it will delete what you typed.
I've tried using quickselect with fuzzy-string.js
converting a <select>
dropdown to a quickselect element. Everything works superb with few characters. However, when typing a longer string I encounter unbearably slow performance.
The performance keeps getting slower with each added character, until it reaches the point where the browser decides the script is stuck. This seems to be (depending on the environment of course) somewhere at 6-10 typed characters. I have tried this with two different computers, and on the latest Firefox, Chrome and IE. Tried using jQuery version 1.3.2 and 1.5 (latest).
My data in the form is actual data of about 100 organizations, with names ranging from 20 to 40 characters in UTF-8. I consider this a pretty regular (or even quite small) use case, considering the point of quickselect is to help user find the right option from a large selection.
Test demonstration of the problem: http://ilarikajaste.fi/dist/quickselect-problem/
I'm using your plugin to build some autocomplete fields in a form. I'm also using the Appendo plugin to dynamically add rows to my form. However, an autocomplete field, when duplicated, doesn't keep the autocomplete functionality. I'd need to manually re-apply the quickselect() method.
I think this can be fixed using the .live() -- and now .on() -- binders in jQuery. Any thought of an update?
Thanks!
When I select an item in the dropdown list and I click OUTSIDE of it, I do not expect it to select the selected item (which was selected by hovering over it).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.