www.webdeveloper.com

Search:

Type: Posts; User: XMLnewbi

Search: Search took 0.02 seconds.

  1. thanks for the reply. I think im seeing whats...

    thanks for the reply.

    I think im seeing whats going on here. {"op":"addr_sub", "addr":"address"} is a JSON object. correct?

    To send it I need to turn it into a string?

    I tried just changing ...
  2. socket.send Troubleshooting Javascript websocket send

    I am trying to get Javascript to send a command to the server.


    {"op":"addr_sub", "addr":"address"}
    The original script I could just type that in to the form replace the address and hit send.
    ...
  3. socket.send Troubleshooting Javascript websocket send

    my current code


    function send(){
    var txt,msg,address;
    txt = $("msg");
    address = txt.value
    msg = ({"op":"addr_sub", "addr":"address"});
    if(!msg){ alert("Message can not be empty");...
Results 1 to 3 of 3
HTML5 Development Center



Recent Articles