Jump to content

how to create a "Compose Message" interface like facebook compose message


starphp

Recommended Posts

Hello,

 

I wish to create a "Compose Message" user interface which looks similar to facebook's compose message. When I type the name, it will suggest the similar names..

 

Another feature is, need a close icon in the selected ids..

 

How can I create these two feature in a php environment ?

 

 

Is there any javascript plugins or libraries are there?

 

 

Link to comment
Share on other sites

You can create auto-completion by binding a Javascript function to a text fields onkeydown event. Make an AJAX call to a PHP backend that searches for similar usernames, and return that in a format like JSON or XML. Use that data to build the list on the user frontend.

 

I don't know what you're talking about with the "close icon in the selected ids" though.

Link to comment
Share on other sites

 

Yes, I used a JQuery plugin and implemented the user name selection.. But I passed the data as normal rather than xml .. what is the importance of passing data as JSON or XML format ?

 

Close icon, I meant after selected or typed a user name, soon the text will be formatted and there is a close icon at the end of each user name.. we can remove the user names by just clicking on the icon at the end..

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.