Posts by John Covv • 367 points
7 posts
-
3
votes1
answer591
viewsQ: How to delete an item from an object using an internal ID (Vue-2)
I have an object with the following format: [ { "id":1, "name":"exemplo1", "email":"exemplo1" }, { "id":2, "name":"exemplo2", "email":"exemplo2" } ] I need to delete an item from this object using…
-
5
votes2
answers767
viewsQ: How do HTTP response status codes work?
I’m redirecting a user to the root route in case they don’t pass a condition and the slim framework asks for an http status for redirection. With this I did not understand exactly how this process…
-
1
votes2
answers465
viewsQ: Which method to use to log a user (JWT cookie vs SESSION)
So, my doubt is the following, which is the best method to create a login "session" for the user. I learned to create this session using JWT in cookie, however the cookie is accessible by the…
-
2
votes1
answer125
viewsQ: Apply CSS using element class (JS)
[STUDY ONLY] When clicking a button, I need to make the function apply a width to the elements with the class "border_title_result". function spanSize(){ var div =…
-
-2
votes1
answer73
viewsQ: How to make the input follow the last character inserted?
The problem is this. I made a calculator and the result input this as readonly. To insert the number into it just by clicking on the buttons I made as shown in the following photo: However, when…
-
13
votes2
answers431
viewsQ: What is the difference between "Css Resolution" and "Pixel Resolution"
I wonder why a @media(max-width: 400px) is applied on a cell phone that has 1440px/2960px? How it really works ? I found a website with this information, that the mobile has 1440x2960 but the…
-
-1
votes1
answer31
viewsQ: I would like to display a txt file using JS or PHP respecting line break
I tried included and require, but they do not respect the line break. I want to print the file information inside a <p>, study-only.