« first day (3794 days earlier)      last day (1139 days later) » 

1:46 AM
I'm trying to change a buttons onclick value from the response of an AJAX response so that I can change it to msg[i].mailId but doing "document.getElementById("msg-0").onclick = msg[i].mailId" doesn't work and doing "document.getElementById("msg-0").setAttribute("onclick", "GetMessage(msg[i].mailId)" just prints the string - any suggestions how I can implement a function and var into this scenario?
 
@orgg Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
2:05 AM
 
 
5 hours later…
7:00 AM
@JBis Thanks. 👍
 
 
7 hours later…
2:22 PM
Hey, how can I apply this style to an element? (React.js )
`const errorStyle = {
      animation: 'floating2 0.5s ease-in-out 0.1s',
      backgroundColor: '#DE1A1A',
      color: '#f5f3f5',
      outline: 'none',
    };
    e.target.style = errorStyle;`
 
@DziugitoBizox Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
@DziugitoBizox Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
2:58 PM
hi all. anyone here good with autoit?
 
3:41 PM
hello
 
4:21 PM
Hello
 
Hello
 
@JanHeil Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
Is the Chat a new Function ?
 
Far from it
 
okey dokey
is this chat for asking questions like in the main forum?
 
4:33 PM
As in at least about 10 years old by now
Questions, random chit-chat
 
ok thanks
i never seen this before
 
Also, stack Overflow isn't a "forum", it's a repository of Q&A, the social aspect isn't a priority :D
 
mimimi :P
Okay, now i have a Question :P
I'm coding on a simple voice system for a flash game in JavaScript. And I'm using Web sockets for the Data Stream, I had the issue that the response from the Server had an opcode in its first 4 bytes. Now I try to decode the Byte Stream on the Client Side, i simply sliced the first 4 bytes of the ArrayBuffer. But if i like to decode it with the NodeJS Opus Lib, it hangs my Browser with no Error. npmjs.com/package/opusscript
Does everyone here used that library before me ?
 
4:56 PM
I can't help you, but "a flash game in JavaScript" raises eyebrows... I'm guessing you're porting a flash game to JS?
 
It's a Game Client (Electron) which uses pepper flash.
 
You're aware that Flash died a quiet death recently, right?
 
Yes, it's not my Game, it's from a big Community and they asked me.
It's like a training for me...
That Game has an HTML Version too, but the Community find the Flash Version better.
 
Oah okay :P
 
Okay, than i go offline for today, next week i have the next School Round :|
 
 
4 hours later…
9:00 PM
does anyone knows why js doesn't loop ?
document.addEventListener('DOMContentLoaded', () => {

	document.querySelector(".btnnn").addEventListener('click', () =>{


    	var x = document.querySelector(".Formtest");
		console.log(x) // FIRES

		for  (i = 0; i < x.length; i++){

			console.log(x[i], " Doesnt Fire") // Doesnt fire !
		}

	})
});
so x[i] doesn't fire for some reason, not sure why
x is a list of <div>
nvm , x is not a list ..
 

« first day (3794 days earlier)      last day (1139 days later) »