From 57d5af1887a77b1c09b9c4aa8a1add102ba2368f Mon Sep 17 00:00:00 2001 From: Anthony Froissant Date: Fri, 2 Jan 2015 11:08:02 +0100 Subject: [PATCH] Select the correct DOM node (fixes #1) Changed "message" to "msgToServer" to select the correct DOM node ("message" returns null, which breaks the function) --- socketio-example.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/socketio-example.html b/socketio-example.html index 5c13ea0..9f2d609 100644 --- a/socketio-example.html +++ b/socketio-example.html @@ -81,7 +81,7 @@

Socket.IO Example

d3.select('#msg-form').on('submit', function() { - var inputElement = d3.select('#message').node(), + var inputElement = d3.select('#msgToServer').node(), message = inputElement.value.trim(); // Check that the message is not empty @@ -115,4 +115,4 @@

Socket.IO Example

- \ No newline at end of file +