It turns out that this jQuery plugin is very buggy, hence the idea to look for another
here are the ones I found, having similar functions:
http://code.drewwilson.com/entry/autosu … ery-plugin
http://wharsojo.wordpress.com/2008/02/1 … ocomplete/
http://loopj.com/jquery-tokeninput/
all only work on "input text",so we need to replace all "select" boxes
I began to see how to use AutoSuggest, very easy to use, set up in 5 minutes on page picture_modify except taht ..... it does not allow to add new values: (
I left a comment on the site but I'm afraid to wait long before the dev adds the function
and I will test more tomorrow ^ ^
Last edited by mistic100 (2011-05-14 00:33:15)
Offline
I would start with jquery-tokeninput : it is the most recent and probably the most "up to date".
In fact concerning replacing FCBKcomplete, I would like to have a better ergonomy, like what I've described on [Forum, post 112013 by plg in topic 15260] Improving the "add tags to photo" form, but replacing FCBKcomplete has a bigger priority because as you said, it is currently buggy.
Offline
With Tokeninput the search is not done by the client but by the server, so we must modify the function that returns tags
not hard but it must be said ^^
edit : I've made this request in order to have tags sorted by relevance
SELECT
id AS tag_id,
name AS tag_name
FROM '.TAGS_TABLE.'
WHERE name LIKE "%'.$s.'%"
ORDER BY
(
CASE WHEN name = "'.$s.'" THEN 1 ELSE 0 END +
CASE WHEN name LIKE "'.$s.'%" THEN 1 ELSE 0 END
) DESC,
name ASC
;but don't know if it works on pgsql, pdo-sqlite or sqlite
Last edited by mistic100 (2011-05-14 19:14:05)
Offline
damn ! the stable version of Tokeninput neither allows to create new tags
but one of the forks does https://github.com/gr2m/jquery-tokeninput
Last edited by mistic100 (2011-05-14 21:27:54)
Offline
mistic100 wrote:
With Tokeninput the search is not done by the client but by the server, so we must modify the function that returns tags
that's a bad news :-/ it means a new client -> server (many SQL requests) -> client cycle for each new key your press on the keyboard :-/
mistic100 wrote:
but don't know if it works on pgsql, pdo-sqlite or sqlite
I'm 94.6% sure it won't work "as is" for PostgreSQL/SQLite :-/
Offline
I you find that and if it works without bugs encountered with FCBKComplete it would be a very good workaround before implementing a better user interface for filling tags.
Offline
plg wrote:
mistic100 wrote:
With Tokeninput the search is not done by the client but by the server, so we must modify the function that returns tags
that's a bad news :-/ it means a new client -> server (many SQL requests) -> client cycle for each new key your press on the keyboard :-/
I made a mistake here, we CAN do a local search, but the json array must be included in the html page
bad for galleries with many tags
Offline
Bypassed using the getJSON function of jQuery and give the result as parameter for TokenInput
Offline
it's endless....
TokenInput prefill the input with a json object, not with the content of the input
not a problem on pages with a single input but on batch_manager_unit I don't knox hox to proceed
Offline
We have made some tests on trunk with P@t. We have seen a very long time to load the page, because TokenInput was waiting for the list of tags, loaded from an Ajax request.
Considering that the Ajax request is always performed, there was no need to make it as an Ajax request (which was generating much more SQL queries on Piwigo side) and P@t as embedded the list of tags in the page source code instead. Now it's much faster.
Offline
That was a very good idea to remove FCBK, my antivir always spot it as a malware, certainly a false-positive but that proves that there is a problem ^^
Offline