Skip to content

Commit

Permalink
Select the correct DOM node (fixes pnavarrc#1)
Browse files Browse the repository at this point in the history
Changed "message" to "msgToServer" to select the correct DOM node ("message" returns null, which breaks the function)
  • Loading branch information
froissant committed Jan 2, 2015
1 parent f58255a commit 57d5af1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socketio-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h1>Socket.IO Example</h1>

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
Expand Down Expand Up @@ -115,4 +115,4 @@ <h1>Socket.IO Example</h1>
</script>

</body>
</html>
</html>

0 comments on commit 57d5af1

Please sign in to comment.