Page 1 of 1
Add the nick quickly
PostPosted: 24 May 2016, 08:09
by AGarciaSanchez
Only in chatrooms.
It would be very interesting to refer to a user in the chat room without having to write all your name .
Re: Add the nick quickly
PostPosted: 04 Jul 2016, 05:42
by LKormoczi
I support this suggestion too. In my favourite (but discontinued) chat application it works this way:
writing beginning letter(s) and pressing TAB key complete it to the full nick.
AGarciaSanchez wrote:Only in chatrooms.
It would be very interesting to refer to a user in the chat room without having to write all your name .
Re: Add the nick quickly
PostPosted: 06 May 2017, 11:37
by AGarciaSanchez
Achieved with this js:
var ElementosClick = new Array();
document.onclick = captura_click;
function captura_click(e) {
var HaHechoClick;
if (e == null) {
HaHechoClick = event.srcElement;
} else {
HaHechoClick = e.target;
}
ElementosClick.push(HaHechoClick);
if (HaHechoClick.className == "arrowchat_chatroom_message_name"){
document.getElementsByClassName('arrowchat_chatroom_message_input')[0].value = HaHechoClick.innerHTML;
}
}