I want to send data to the specified user, and no one else.  currently to broadcast to everyone I do:  socket.on('newChatMessage', function (message) { socket.broadcast.emit('newChatMessage_response', { data: message}); });   now what...
When I use this code, it works:  ajax.open("post","a.php",true);   but when I try to send data to a external file like:  ajax.open("post","http://www.example.com/a.php",true);   it doesn't work.  Are there any solu...
Usually, we only put the data we want to send as websocket.send() method's parameter, but I want to know whether there are other parameters like IP that we can put inside the brackets. Can we use it this way:  websocket.send(ip, data);  // send d...
I use like and send plugin on bottom of my site. But, when click send button, popup window opens down and does not shown full. How can I make popup opens to above? but not change like and send buttons positions. To change only positions of popup....
Is there any other way to post message to multiple recipients. We've tried to integrate logic, described here Facebook send dialog to multiple friends using a recipients arrays but it doesn't look it works now. It just allows to send informat...
I am trying to dynamically change the URL of a Facebook Send button with Javascript, but I have had no success so far.  I have a page set up with a few inputs, and I would like the URL of the send button to take the fields value as parameters before...
I'm trying to pass two javascript variables to PHP. When there's only one then it's working but I have no clue how to send two at once. Here's my code      function save(nr) {      var xr = new XMLHttpRequest();      var url = 'sa...
TypeError: Cannot read property 'send' of undefined What did i do wrong? I dont see where i should define it. Probably just a dumb thing i forgot. I would appreciate all improvements/suggestions.  module.exports = {     name: 'suggest'...
I can't remember how long ago it was, but Discord.js updated in the time that I was away and not coding. One of the things that was updated and will be removed in 1.12 (or so I'm told) is the sendFile option. sendFile, senMessage, etc. are al...
Is it possible to send non-editable arrays?  What i'm trying to send is:  var items = []; //console.log(JSON.stringify(items)); allitems = JSON.stringify(items);  [{     "assetid": "7814010469",     "classid": "1797256...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.