#1
|
||||
|
||||
Artist name autocomplete
I'm testing out the jQuery javascript library on VGMdb, which allows for easy implementation of some advanced techniques such as dynamic autocomplete. You can see it in action on the artist fields on the album submission page (new album / album edit). It activates with a minimum of three characters, with the comma as separator.
If it works out, I'd be extending this to other areas of the site, such as replacing the current collection tree view script. |
#2
|
||||
|
||||
Looks good! Very nice work.
__________________
Larry "Liontamer" Oji Community Manager & Submissions Judge, OverClocked ReMix OC ReMix ~ twitter.com/ocremix ~ facebook.com/ocremix ~ youtube.com/ocremix |
#3
|
||||
|
||||
This should come in handy. Nice work!
|
#4
|
||||
|
||||
You could optionally make the query return distinct results. It returns two records for "Brian Davis" for example.
__________________
hi~ |
#5
|
||||
|
||||
That's because there are two records for "Brian Davis", one added by Akumu and the other by Liontamer. You guys might want to sort that out
I'll add the ID display next to the names, so you can differentiate between two artists with the same name. |
#6
|
||||
|
||||
GigaBlah,
Using jQuery, are you making an Ajax call to a web service that returns XML and using that to build the autocomplete? |
#7
|
||||
|
||||
I think they are actually 2 different Brian Davis's. The Brian Davis I added just goes under his real name and released a few cds several years ago, while the one Larry added did alot of work more recent under the remix name Ubik, in a completely different style than the other.
|
#8
|
||||
|
||||
Quote:
__________________
Larry "Liontamer" Oji Community Manager & Submissions Judge, OverClocked ReMix OC ReMix ~ twitter.com/ocremix ~ facebook.com/ocremix ~ youtube.com/ocremix |
#9
|
||||
|
||||
Yeah, it's an AJAX call to a php file that grabs a list of names for populating the dropdown select. I don't think it'll place excessive load on the server (since it makes use of the AJAX queue plugin), but if it does we could always switch to an XML file cache.
|
#10
|
||||
|
||||
Quote:
From my past experience, the ajax call should not really cause an excessive load. It would take a massive amount of returned data for that. I actually would be more worried about the browser's memory usage from loading a large XML file than I would about the server load. |
#11
|
||||
|
||||
Added a function to automatically strip trailing commas from the artist fields whenever album info is submitted >_>
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Artist wiki? | Gigablah | Questions and Comments | 6 | Oct 15, 2014 03:12 AM |
What to use on the ARTIST tag when tagging? | Kewing | Miscellaneous Discussion | 3 | Sep 26, 2010 01:15 PM |
Artist name variations | Gigablah | Questions and Comments | 21 | Jan 15, 2009 07:57 PM |
Artist order | Kaleb.G | Questions and Comments | 1 | Jan 12, 2008 07:56 AM |