Hi guys,
I've stupid about Node.js server.
First, Why I cannot dis play a received message from server with this code
on another page e.g. receive_message.php:
*socket.onmessage = function(event) {
var data = event.data;
};*
It works fine if it is in the same page where contains the: *send( data );*
e.g. both in the index.php
Secondly, What is the code you use to send back image after the server received
it. The bellow code does not work in Chrome:
*if (message) {
console.log('Received Message: ' + message);
connection.send(message);
}*
Here's the code I encode image to base64
*var data = canvas.toDataURL(image/webm);*
Thanks in advance and sorry for my stupidity.
PS. This is not an issue on Opera
Ket
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en