Duplicate: http://stackoverflow.com/questions/188442/whats-a-good-ajax-autocomplete-plugin-for-jquery
+3
A:
TheJuice
2009-10-07 19:47:34
http://stackoverflow.com/questions/1297518/need-a-good-way-for-user-to-select-to-for-email-sending
Zack Peterson
2009-10-07 20:56:15
http://stackoverflow.com/questions/1300091/need-gmail-like-functionailty-jquery-autocomplete-to-include-names-and-email-ad
Zack Peterson
2009-10-07 20:56:54
+2
A:
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
Check out this plugin. It appears to be quite robust and stable and may meet your needs. jQuery is a perfect choice for the kind of effect your seeking. Just keep in mind that, depending on where you want to get your data from, you'll need to create some sort of ajax/php backend.
Levi Hackwith
2009-10-07 19:47:56
I'd remove the php part as any server-side web technology/framework could be used
Russ Cam
2009-10-26 15:18:49
+1
A:
There are lots and lots of jquery bits that do this, you can google for "jquery autocomplete" and see which you like best.
Here's one that is more famous: http://docs.jquery.com/Plugins/AutoComplete
<script>
var emails = [
{ name: "Kitty Sanchez", to: "[email protected]" },
{ name: "Lucille Austero", to: "[email protected]" },
{ name: "Bob Loblaw", to: "[email protected]" },
{ name: "Sally Sitwell", to: "[email protected]" }
];
$(document).ready(function(){
$("#Recipients").autocomplete(emails, {
multiple: true,
minChars: 1,
matchContains: "word",
autoFill: false,
formatItem: function(row, i, max) {
return "\"" + row.name + "\" <" + row.to + ">";
},
formatMatch: function(row) {
return row.name + " " + row.to;
},
formatResult: function(row, i, max) {
return "\"" + row.name + "\" <" + row.to + ">";
}
});
});
</script>
Prody
2009-10-07 19:48:31
+1
A:
These answers are fine but I think he's looking for something email specific. Gmail's email auto complete is very robust and smart taking into account like who you email most often and other factors.
Cody C
2009-10-07 19:57:35
You could probably figure something primitive in for this on the backend, assuming that there is auditng for sending emails and you know who sent an email and who they sent it to.
Russ Cam
2009-10-26 15:21:42