« first day (3452 days earlier)      last day (1486 days later) » 

is anyone here familiar with React?
and can help me in something?
 
 
5 hours later…
9:11 AM
need some help with Bootstrap pop-up
I mean bootstrap tooltip
 
 
3 hours later…
12:06 PM
Hello, I'm retrieving data from Firebase using angularfire. My array is something like

"5e7617b294177d00e964b52c" : {
//many things
}

but in my console.log, the output is something like

0:
//many things
$id : 5e7617b294177d00e964b52c

I forgot the syntax to access to the $id. Any helps ? :)

Many thanks
like, i can't just do array[0].$id.
nor array.$id
 
12:59 PM
angularfire has a doc, github.com/angular/angularfire
 
 
2 hours later…
2:46 PM
It seems most packages on npm transpile code down to ES5 for distribution. The original work might be in ES6, but the exported package is often in ES5. I'm trying to understand why it's done this way. Wouldn't it make more sense to always export as ES6 and let the consumer of the package decide if they want to support ES5 or not?
 
 
3 hours later…
6:07 PM
Hey all, I'm looking for the best way to create a dynamic function that organizes JSON object, In my case, I just want to add Id and parent Id for each level of the nested JSON Object.

https://jsfiddle.net/0z84cs5f/4/ here is a link for the example, I'll be working on it as well but If you have a better idea or technique please let me know.

Thanks
level0 : {id:0.1},{id:0.2},{id:0.3}....etc
level 1 for 0.1 : { id: 1.1} , { id: 1.2},...etc
level 1 for 0.2 : { id: 2.1} , { id: 2.2},...etc
level 2 for 1.1 : { id: 11.1} , { id: 11.2},...etc
level 2 for 1.2 : { id: 12.1} , { id: 12.2},...etc
level 2 for 2.1 : { id: 21.1} , { id: 21.2},...etc
level 2 for 2.2 : { id: 22.1} , { id: 22.2},...etc
 
7:02 PM
I want to update my database before closing the website tab or browser.

I want to update the user online status when online users close the browser tab or browser.
I used the code below.
For example, I gave an alert message, but it doesn't work.

```
window.onbeforeunload = function () {
return "Are you sure you want to navigate away?";
}```
I tried the solutions at the addresses below but it didn't work.
https://stackoverflow.com/questions/20853142/trying-to-detect-browser-close-event
https://stackoverflow.com/questions/2229942/how-to-block-users-from-closing-a-window-in-javascript
 
7:17 PM
Hello people, i'm getting this timestamp from an API and I need it to be in a different format. this is how I get it "2020-03-26T23:00:00.995Z" can anyone recognize this time format?
and how can I convert it to a different format for example: March 26
thanks
 
@MeirRoth 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.
 
7:38 PM
Meir use momentjs
 
Ill check it out, thanks olayem
 
 
1 hour later…
9:03 PM
Good day, any node js/ socket IO expert here? I am trying to send message to specific client using sockets from another "non-socket process" i.e. a worker queue
I have my main node process, on which I have setup socket and listening to using socket.io-redis
Now I have another process (a worker queue), who needs to send message to specific client. I have their socket ID, but unable to get connected socket and send it message
If socket.io-emitter can be of any help, any direction would be helpful, since I have failed with this too
 
9:50 PM
Hey, just had a quick question
If I do a querySelector cmd in VSC and run it on live server , it gives me an error ( chrome) but when I try in on chrome's console, works fine.
so, what went wrong?
 
10:01 PM
depend which is the code...
ah.. try adding <meta...
 
>?
 
wait
sorry not meta
you got the error in querSelector because the element not loaded in page
 
oh
 
So you have to check if page loading is complete
 
then can I add <script>tag at the bottom in index.html?
 
10:06 PM
easy solution
// Polling for the sake of my intern tests
var interval = setInterval(function() {
    if(document.readyState === 'complete') {
        clearInterval(interval);
        done();
    }
}, 100);
good luck
or check the element
 
actually, adding the script tag at bottom worked
thanks :)
 
10:40 PM
@Augustus this is bad... you can do better using the polling document!
 

« first day (3452 days earlier)      last day (1486 days later) »