Solved

Sending emails a la Google mail

Posted on 2014-10-04
10
103 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:andieje
Comment Utility
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
Comment Utility
thanks cd for the reality check
0
 

Author Comment

by:andieje
Comment Utility
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
Comment Utility
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
Comment Utility
See Tagging Support Section
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

763 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

10 Experts available now in Live!

Get 1:1 Help Now