Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sending emails a la Google mail

Posted on 2014-10-04
10
Medium Priority
?
130 Views
Last Modified: 2014-12-14
Hi

In google mail when you click in the send button and start typing it starts to autocomplete a recipient and if you pick the name the name is there in the send box with a cross to remove it. Or it adds a new name if there is one is doesnt recognise. Then when you start typing again to add another recipinet another autocoplete dropdown appears and so the process repeats.

Is there a ui element/plugin/tutorial etc for copying this functonality

thnks
0
Comment
Question by:andieje
10 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40361263
jQuery
http://jqueryui.com/autocomplete/

https://twitter.github.io/typeahead.js/

...and dozens of other autocomplete plugins, this is js - nothing to do with php
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 40361322
Might intersect with PHP if the auto-complete made an AJAX request to get information from a database.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 40361451
It is very resource intensive to get it as responsive as Google has it.  Unless there is a lot of bandwidth, and lots of threads available server side it is probably not something that can be done with the same level of efficiency on a smaller site.  I doubt it is using AJAX to respond to the input, because the response is quicker than AJAX would normally deliver.  It is more likely that the data (which originates in the users profile data, is being cached in sessions stuffed into a not exposed segment in the DOM.

Cd&
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:andieje
ID: 40373809
it does intersect with php tp get autocomplete from database

With respect on this page i see nothing that looks like the google send box unless it in demo i missed
0
 

Author Comment

by:andieje
ID: 40373840
Back to the ul page - on the multiple examples page the selected  values are  not associated with an 'x' to remove as in google receipients

attachment 1 - demo
attacement 2 - google
0
 

Author Comment

by:andieje
ID: 40373857
Is there a special name for these widgets as you can imagine searching for anythign related to google doent give the best results :)
0
 

Author Comment

by:andieje
ID: 40373941
thanks cd for the reality check
0
 

Author Comment

by:andieje
ID: 40374966
My last comment didnt come out right

In googlerecipient in googlejquery ui widget you get autocomplete if a name exists, the ability to add a new name and each name is in a box with a delete icon

In jquery you can add multiple values with autocomplete, there is nothing inherent to delete an item, These were the images  i meant to post
0
 

Accepted Solution

by:
andieje earned 0 total points
ID: 40489613
I am going to answer my own question with jquery select2. There is an example of google style boxes on there
Thanks
0
 

Author Closing Comment

by:andieje
ID: 40498688
See Tagging Support Section
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question