Oxwall,在文本聊天中发送链接 [英] Oxwall, send link in text chat

查看:77
本文介绍了Oxwall,在文本聊天中发送链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



当用户点击聊天朋友的方框中的指定按钮时,我想在文本聊天中自动发送链接。填写文本聊天框后可以发送回车键吗?



感谢您的回答。

Hi all,

I want to send a link automatically in text chat when a user click on specified button in chat friend's box. Can you send enter key after i fill text chat box.

Thanks for your answers.

推荐答案

我可以在Oxwall找到文本聊天功能。 />
此javascript文件具有所有功能(ow_plugins / mailbox / static / js / contactmanager.js)。



我可以找到接收键的功能从文本聊天,当我按回车键,这个功能所有文本到服务器。



如果我可以发送键输入(这意味着我可以使用enter键参数调用此功能)我可以在填写文本聊天框后发送我的链接。

I could find function for text chat in Oxwall.
This javascript file have all function (ow_plugins/mailbox/static/js/contactmanager.js).

I could find the function for receive key from text chat, When i press enter, This function all text to server.

If i could send key enter (this means i can call this function with enter key parameter) i could send my link after i fill text chat box.
this.textareaControl.keypress(function (ev) {

        if (!self.model.isSelected) {
            self.model.setIsSelected(true);
        }

        if (ev.which === 13 && !ev.shiftKey) {
            alert("jiq oooo dasto hora!!!22222 :D");
            ev.preventDefault();

            var body =


this )VAL();
alert(body);
if


.trim(body)== ' '
return ;

self.sendMessage(正文);

if (self.dialogWindowHeight> 0 ){
self.messageListWrapper.height(self.dialogWindowHeight);
}
.trim(body) == '') return; self.sendMessage(body); if (self.dialogWindowHeight > 0) { self.messageListWrapper.height(self.dialogWindowHeight); }


这篇关于Oxwall,在文本聊天中发送链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆