Solved

Sending emails a la Google mail

Posted on 2014-10-04
10
106 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 108

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
 

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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now