meteor / chat-tutorial Goto Github PK
View Code? Open in Web Editor NEWFive part tutorial to build a single-room chat app.
Five part tutorial to build a single-room chat app.
Hi, thank you for your tutorial. I'm working on a chat on my own at the moment and it helped me a lot so far.
I have a problem considering
Template.message.onRendered(function () {
if (autoScrollingIsActive) {
scrollToBottom(250);
};
});
Everything works: When I write normally when autoScrollingIsActive is true it scrolls down. It also scrolls down when I scroll up and write something.
Then I decided testing it on two tabs with 2 different 'users'. The user that posts his message gets his scroll-down but not the user that receives the messages. I didn't exactly followed the tutorial, since I wanted to implement rooms.
Would you have any idea whats the reason behind that?
Edit: I found this error in the console
ReferenceError: autoScrollingIsActive is not defined
at Blaze.TemplateInstance.<anonymous> (chat.js:226)
at blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:3398
at Function.Template._withTemplateInstanceFunc (blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:3769)
at fireCallbacks (blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:3394)
at Blaze.View.<anonymous> (blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:3487)
at blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:1845
at Object.Blaze._withCurrentView (blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2271)
at blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:1844
at Object.Tracker._runFlush (tracker.js:511)
at onGlobalMessage (meteor.js?hash=857dafb4b9dff17e29ed8498a22ea5b1a3d6b41d:515)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.