starphp Posted May 21, 2009 Share Posted May 21, 2009 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 https://forums.phpfreaks.com/topic/159021-how-to-create-a-compose-message-interface-like-facebook-compose-message/ Share on other sites More sharing options...
Daniel0 Posted May 21, 2009 Share Posted May 21, 2009 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 https://forums.phpfreaks.com/topic/159021-how-to-create-a-compose-message-interface-like-facebook-compose-message/#findComment-838720 Share on other sites More sharing options...
starphp Posted May 22, 2009 Author Share Posted May 22, 2009 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 https://forums.phpfreaks.com/topic/159021-how-to-create-a-compose-message-interface-like-facebook-compose-message/#findComment-839603 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.