Coder Social home page Coder Social logo

chatjs's Introduction

This project is no longer maintained. I recommend not using it.

chatjs

Platform-independent jQuery plugin for chatting. More information at http://chatjs.net

chatjs's People

Contributors

andrerpena avatar athom avatar rpaschoal avatar widnyana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatjs's Issues

So wait..

Is this paid for, or what? I understand rooms work on integegers. So I decided to make two 'channels'. One for users, and one for admins. (in theory) so if you are logged in as a admin you can speak with other admins. As a user, you can speak with other users online.

However I get the console log: "DemoServerAdapter: enterRoom
uncaught exception: Only the default room is supported in the demo adapter"
And the chat no longer appears. I don't want echo bot. And I don't want everyone to be you...

I see no option to "Purchase" just to download... so what is this?

Auto Open

Hi,

how can i disable auto open Chat Box ?

Regards
Shadat

Cannot create received message with socket.io

What I'm trying to achieve is to receive a message sent by a user in another window, however the response is printed multiple times.

Its seems to me like the 'DemoServerAdapter.prototype.sendMessage' function is called x times as messages already sent.

               socket.on('chat_receive', function(message) {
                console.log(message);
                var echoMessage = new ChatMessageInfo();
                echoMessage.UserFromId = message.send_user_id; // It will be from Echobot
                echoMessage.RoomId = roomId;
                echoMessage.ConversationId = conversationId;
                echoMessage.Message = "The other: " + message.message;

                // if it's not a private message, the echo message will be to the current user
                if (!roomId && !conversationId)
                    echoMessage.UserToId = current_user_id;  // Id del usuario actual

                // this will send a message to the user 1 (you) as if it was from user 2 (Echobot)
                _this.clientAdapter.triggerMessagesChanged(echoMessage);
                 });

Example:

image

Problem ChatJs

hello andrerpena,
I like your plugin. But when i tried to implement it in my project (MVC5) i had an error ($.chat is not a function)
I don't find the file jquery.chatjs.js in the project .
Can you help me please?
Thank you.

Emoticons Replace Only Works for the First One (Minor Bug)

If you send :) :) :) only the first one is replaced for an emoticon

FILE: jquery.chatjs.messageboard.js
var emoticons = [
{ pattern: ":-)", cssClass: "happy" },

MUST BE
{ pattern: /:-)/g, cssClass: "happy" },

replace all the "..." for /...../g

Hope this helps

Adapters

Do we have to really write our own adapters? Why not just make a dynamic adapter that works but has couple users added for the demo?

I can add a user into the demo adapter just fine but when sending messages as new user, echobot doesn't respond nor your test account.

Type definition files (for SignaR adapter)?

chatjs\chatjs\js\jquery.chatjs.adapter.signalr.ts and chatjs\ChatJs\js\jquery.chatjs.adapter.signalr.js both have top lines of

/// <reference path="../../Scripts/Typings/jquery/jquery.d.ts"/>
/// <reference path="../../Scripts/Typings/signalr/signalr.d.ts"/>

But there is no folder /Scripts and no .d.ts files in a project. I'm pretty new to TypeScript. Where can I get those missing .d.ts files?

SignalR

Is it possible to incorporate this plugin with SignalR?

THankk you,

João

issue for multiple user

i am using your plugin in my php project but there is no idea to implementing this for multiple user. Please user. please suggest me to, how to make changes in js plugins.

except document or example

hello andrerpena i use chat js v1.0, now the new chatjs has many new features.can you give us some README files or example,thank you very much.

implement an adapter chatjs

I want to implement an adapter chatjs, but i don't know where to start jeje
where I load the friend list ?? or what is the correct way to implement the adapter
Can you help please?

thanks you.

PD: Let me congratulate you, a very good job the plugin.

Closing chat/pm windows then re-opening

When you open then close a chatbox then reopen the same window( userClicked function ), and type in the textbox and press send, the messages get double send. the client adapter onMessagesChanged function/listener gets called in as many times as you close open the private chat box with the same user. I hope you understand what Im saying :)

ChatJS using Scaleout with SQL Server

Hi Andre,

I like your project. But I'm getting crazier when I implement the SignalR Scaleout with SQL Server. I want the chat application communicate on multiple servers that sit on a load balancer.
Ex. apps.chat1.com users can communicate to apps.chat2.com. these servers are using 1 database.
so I use signalR scaleout with sqlserver. Do you think your project will work with this solution? I tried it but it doesn't work. I'm thinking I need to implement the persistent connection using db?

Adding ajax call to get friendlist from an API

Hello! This is a great jQuery plugin. I would like to add the ability to make an ajax request to an API for auto-updating the friend list. I have a couple questions.

How do I update the user list?

How do I assign a private room to each pair of users?

Once complete I will pull request. :)

Fill userlist from mysql Database

Hi everyone,

I've tried to fill my Userlist with Ajax in my own Adapter. But no users shown. The Array is filled. I'am confused. Maybe some help?
Thanks alot!

this.users = new Array();
        $users = this.users;
        $.ajax({
            url : "/plugins/messages/ajax.php",
            type : "POST",
            dataType: 'json',
            data : {
                type : "get_userlist"
            },
            success : function(data, textStatus, jqXHR) {
                $.each(data, function(index) {
                    var tmpUser                 = new ChatUserInfo();
                    tmpUser.Id                  = data[index].ID;
                    tmpUser.RoomId              = 1;
                    tmpUser.Name                = data[index].FirstName+' '+data[index].LastName;
                    tmpUser.Email               = data[index].Email;
                    tmpUser.ProfilePictureUrl   = "";
                    tmpUser.Status              = data[index].Online;
                    $users.push(tmpUser);
                });
            }
        });

        this.users = $users;

chatjs

doesnt works the repos

License

The LICENSE file says that its MIT license, but in the jquery.chatjs.css says: "The software containing ChatJS must not directly or indirectly charge the end user at any plan. Otherwise a commercial license is required."

Which one is correct? Is it a restriction only for the stylesheet?

Problems With ChatJs

hello andrerpena i downloaded the chat js, but i had problems implementing it in my project, please do you have any README files so i can use as a guide....... i saw the demoAdapter but the main issue is i didn't know where to start so please help

Uncaught TypeError : jquery.chatjs.controller.ts:98

Hi,

Could you help me to resolve this issue

jquery.chatjs.controller.ts:98Uncaught TypeError: Cannot read property 'isMaximized' of undefined.

Because of this issue, could not explore further to see rest of the application and how it works.

Appreciate your support on this.

capture1

Thanks,
Manju

SignalR Hub

Hi Everyone!

Do you guys have the Hub Server code? It would be useful to understand how to get the SignalR adapter running!

Add LICENSE file

Hi!

I'm considering about using your plugin, it looks really nice, however it isn't free software, and I can't use it legally.

How about licensing under some good permissible free software/open source license, like BSD?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.