« first day (3861 days earlier)      last day (1073 days later) » 

6:38 AM
@KevinB I look for one @ and a dot after that @
 
 
3 hours later…
9:39 AM
hello!
 
@ShayanKanwal 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.
 
I have a question Does promise affects the load event in Javascript here is the link
0
Q: Load event Stops working due to promise in Javascript?

Shayan KanwalI have made an animation When the window loads the Honey bees come and make their hive. and I have created another function namely createBees() (It will start after some time ) in which the bee will come and go into the hive but this function is behaving weirdly like some times bee is created but...

 
@ShayanKanwal the question itself contains too much information
 
10:07 AM
@ka
KarelG Hello
@KarelG are you there
@KarelG can you give me some information about that like how do I reduce that question because My question is incomplete with the code
 
I am, but please don't ask me to check it. As said before, your question has too much information I do not want to digest.
The link to "minimal reproducible example" here above should suffice to aid you
 
hello friend my question is
when new record add using firebase each time mobile notifications show
how to possible please help me any one know
 
 
2 hours later…
12:16 PM
😂
never change 17
 
12:54 PM
Morn yall
 
heh, he created a new question with the whole js stuff as part of "minimal reproducible example"
 
ok
 
@BernieBro 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.
 
1:38 PM
Hi dear brother, sister
when we play music in pot player I see audio has thumbnail image, Is there any way we can get the image in javascript ?
actually I am doing one audio uploading system, Is there any way in javascript to get the audio image?
 
hello
 
@weiyaou 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.
 
1:53 PM
@KarelG @.
:D
 
not valid :D
gotcha dig up the regex, a sec
.+@.+\.[^.\s]+
it goes well so far.
NOTE: IT IS FOR FRONT-END VALIDATION - DO NOT THINK THAT I AM A GOOFY!!!
(in before comments "that is not how you should validate emails)
 
2:30 PM
...
 
I just use some regex i copied from SO. It isn't exactly to standard but if you are walking around with "&#%@5.3.5.3.com then you should expect to have some issues
 
@KevinB 🧻
where is the pot?!? 😮
 
in the tavern
 
 
2 hours later…
4:25 PM
 
wpskkap
 
 
2 hours later…
6:54 PM
Hey everyone
 
o/
 
I have a question about REST API development using Express
It's actually about how to render web pages using my API.
 
well
i've read posted question, and it reminds me of a rabbit hole i went down with mongoose in the past
 
I didn't want to post a question in stackoverflow, I thought it can be answered with a few sentences. I'm sorry if it's not valid.
 
you're trying to store relational data, in a non-relational dbs
 
6:57 PM
Yeah when you use normalization using mongoose it's basically using NoSQL :P
 
it works, but, if you turn on debugging mode in mongoose, you'll see something quite problematic
 
Like what?
 
like a separate request being sent to mongo for each record
when making a joined get
 
It sounds like the work mechanism of mongoose
 
you can avoid the problem if you are deliberate in how you make your mongoose calls
like, if requesting documents, just request documents, filtered by the user id, don't touch the user document in the process, etc
 
7:00 PM
How do you turn on debugging mode in mongoose?
 
@KevinB So when I populate referenced documents, it will request twice, right?
 
i don't recall the specfiics, this was... like 5 years ago
things may have improved since then
but keeping an eye on the debug mode output can help you find when it's doing something unexpected
 
I got it. I will keep that in mind to increase db request performances in the future, thanks.
May I ask you my question? It's not something really specific, it's about more abstract problems like 'how should I do'
Anyways, let me ask the question. Maybe someone else can help or give an idea
Now, I have a REST API written in node.js/express
I have authentication mechanism using jwt
I have users router that does that responses the basic user related requests such as listing all users and listing a user with specific ID
but these 2 requests are only valid for admin users
Consider that I have web app that will use API to render pages
I want to show some users in index page but I dont know how to do that using my API
Users can only make requests only related to themselves, not about other users
How am I going to overcome this issue?
 
well, you can't prevent a user from sending a request
 
7:11 PM
Should I not use API for preparing web pages? Because if I want to get some users using my API in the web app, It will ask for admin authentication. Creating a admin user for my web app is pretty absurd idea
 
so, your api must have the user authentication bit built-in, but you also want your UI to not give users the ability to click buttons that will just fail because they don't have access
so when react is given the signal that the user is signed in, it also needs to store in state whether or not hte user has access to those things
then you can use the state to decide whether or not to show it
 
Uhmm, what if a guess in index page should see usernames or some info about other users?
 
your api shouldn't allow that
 
Yes, it won't allow that due to authorization
How can I overcome it?
My app doesn't have a admin account for making API calls to list users that needed to show on index page, it's just a web app not a user. I'm confused
 
so, when a user visits the page, they login, yes?
 
7:18 PM
Yes, but they may not login and surf on the web app as well
You can think my web app something like a forum page
 
if they aren't logged in, your API should return a 401 error on any request not logged in users don't have access to
regardless of what the front-end webapp is doing
that's what prevents your end-users from requesting data they shouldn't be able to see
 
Hmm, so I think I only have one solution to show users in index page
I think I need to handle what to show visitors in server side of my web app, without using my API
Am I correct?
 
7:31 PM
Is there something similar to CSS !important for JS?
I have a simple line that is being ignored
Its crazy b/c everything on both sides of var.style.minHeight= 10em works
but var.style.minHeight= 27em does not
 
it's not being ignored
ez
 
This usto work before adding an eventlistener
 
it just may not apply given the other styles applied to that element
 
posted on May 12, 2021 by Prudhvikumar Bommana

The Beta channel has been updated to 91.0.4472.56/57 for Windows 92.0.4472.57 for Linux and Mac. A full list of changes in this build is available in the log. Interested in switching release channels?  Find out how here. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Prudh

 
vs HTML OnClick="funcName(1)"
 
7:34 PM
that's unrelated
if onclick works and addeventlistener doesn't, it's not because you're missing some magical !important
 
got a moment to walk with me?
Yea I knew !important would have been jerry rigged I was just grasping at straws and was ofcourse open to learn something new
Just maybe you could try this and see it in person
NO Ads
Heres where it gets crazy
If you enter a model (any characters will do)
and click Next, The next pane looks beautiful
Refresh and try the same thing again only this time instead of clicking Next, just hit enter or "Go" on a mobile keyboard and Woila... You'll see the issue
var.style.minHeight= 27em is being ignored
ONLY when clicking Next via the enter key
Click it manually and all works great
All I did today was remove OnClick="nextPrev(1)" from the HTML and put it in an eventlistener
 
what kind of event listener
 
newListingNextBtn.addEventListener('click', function(e) {
	e.preventDefault();
	console.log('Go Entered Clicked');
	nextPrev(1);
	return false;
});
 
sounds like it's not being triggered by hitting Go
 
And Im pretty sure "Click" is picking up Enter and Go
B/c If I "Enter" or "Go" I get Console msg
 
7:42 PM
there's a difference between the two
 
and it goes to the next phase
 
OnClick="nextPrev(1)" doesn't stop the default event from occuring
 
but minHeight... is being ignored
 
minheight is unrelated
 
I removed that from the HTML
 
7:43 PM
that's just a symptom
right
but
 
Okayyyy
IDK??
 
OnClick="nextPrev(1)"
 
Listening
 
it's not the same as add event listener
 
Hmm
 
7:43 PM
newListingNextBtn.addEventListener('click', function(e) {
	e.preventDefault();
	console.log('Go Entered Clicked');
	nextPrev(1);
	return false;
});
in this case, you're preventing the default action, and returning false
you did neither of those things when you were using onclick
What difference would that cause?
 
btw the return false is something I plucked out of outer space
 
sure
 
idk
 
but it's meaningful
when you click on a button, by default, that button will submit whatever form it is in
 
Gotta have e.preventDefault(); to prevent the form from submitting
 
7:45 PM
when you press enter on an input, if there's a single button, it will click that button
 
and console.log doesnt matter (Even tried w/o it just incase)
 
your original code wasn't preventing the form from submitting
 
Andddddd It makes it to nextPrev(1) inside that event listener
Andddd is not being rude
Been sounding it out to myself all day like that
And it shows the next phase
like the code says it should
and it does
If you try in person youll see
If you havent already
BTW, Im not monitoring
just trying to fix the pesky rascal
I just tried again
It Works if you take your finger and manually push the button (With mouse etc)
 
sorry, i don't visit other sites
 
It also works via enter but when you get to the next phase it doesnt minHeight=27em
Ok
Fair enuff
I appreciate your courteousy unlike what Ive unfairly received elsewhere
Ill crack it eventually
Its all like a video game to me
You may recall early computers games being word based
I rmbr
like 1990
Code = 1990 video games to me
I call it Coding Sudoku
Someone should dev such a game
lol
Anyways...
Ill try to explain somemore
So I removed OnClick="nextPrev(1)" and changed button type from button to submit so that enter and go will get you to the next phase
and inserted
newListingNextBtn.addEventListener('click', function(e) {
	e.preventDefault();
	console.log('Go Entered Clicked');
	nextPrev(1);
	return false;
});
(All day affair btw)
and here I am
 
7:58 PM
What does var.style.minHeight gives you in the dev console after clicking and before clicking
does the before value go away after clicking?
 
If anyone else is willing to take a look Id be most grateful
Great clue Kevin
Hoorah
Were getting somewhere
lemme try and see
Gonna take me a few mins
Im predicting it stays 17em since that is where it stays (Height of 1st phase)
Yep Stays 17em
But only on enter/go
 
does teh console.log still happen inbetween
 
it changes like its supposed to when the button is manually clicked
just not enter / go
even though they both get you to the next phase
IDK
Ummm
It console logs Im just not sure if inbetween
This is crazy
Even on enter / go it changes the text and displays the text area so I know its reaching a certain point
And I cant listen for submit and cancel that bc then the form never submits when you get that far
tried that
Crazy is manually clicking btn works
enter / go does too... It just ignores ONE line
The simplest line in all of JS
lol
Im trying to sound it out
Ahh
Thinking outloud
 
8:56 PM
Hey all - i have a quick question about angular material - i am using mat-selection-list and the mat-list-option element gets focused on key press. The element is focused when i press any character that matches the text in the mat-list-option
 
@RakeshGoyal 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.
 
this is the video showing the issue: loom.com/share/f4666bc7a265413eba166f520b75733d
i noticed that cdk focused class is added whenever the focus changes
 
@KevinB Ive even considered that my site was too fast and once wrote: My site's so fast I have to throw anchor() {} else {errors occur}
Ive thought this issue may be my issue and have tried lowering the minHeight=27em but that didnt do it either
This is crazier than I look
So basic it doesnt make sense that it doesnt work
 
 
2 hours later…
10:58 PM
posted on May 12, 2021 by Ben Mason

Hi everyone! We've just released Chrome Beta 91 (91.0.4472.54/.56) for Android: it's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Ben Mason Google Chrome

 

« first day (3861 days earlier)      last day (1073 days later) »