Posts by Maria • 817 points
90 posts
-
1
votes2
answers1042
viewsA: Button does not direct to another page
I managed to put the window.open('progress.php'); in the following function: function pegar(botao){ localStorage.setItem('produto', `${botao.value}`) window.open('progress.php'); } But it opens in…
-
2
votes2
answers1042
viewsQ: Button does not direct to another page
I have a button that when clicked on it, the localStorage takes his ID, then plays the id to the other page, but when I click on the button it is not directing to the other page, only changing the…
-
0
votes0
answers249
viewsQ: Page according to the clicked product ID (JAVASCRIPT)
I’m trying to get the ID of the boot which is a various rival and play on another page to perform a fetch API. Only this button is done automatically, it depends on how many purchases have in the…
-
0
votes1
answer81
viewsQ: Play js variable in html
I made two inputs date, and when I click on "generate" it shows on the console the product that has these dates, but it is a variable, how do I turn a class and play in html? there every time I call…
-
-1
votes3
answers299
viewsQ: Search filtering error (PHP)
I have two inputs date that is to take the date you receive from them and do a search in db to show all products purchased during this date, but is giving the following error: Fatal error: Uncaught…
-
-1
votes1
answer1948
viewsQ: Get input date value
I have two input date created, and would like to take the date of the two by a button. <div class='col-md-5 col-lg-4'> <div class="form-group"> <span>Inicio</span> <div…
-
2
votes3
answers1214
viewsQ: Input date ta in English
I made an input date of the bootstrap and it ta in English, there is some way it stay in en? HTML <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen"> <link…
-
3
votes1
answer390
viewsQ: DIV exiting the screen
I’ve seen several times a div kind of coming off the screen, and as I won’t be able to explain it properly, I’ll show you a picture of an example: I figured it would be box-shadow, but I couldn’t do…
-
1
votes0
answers74
viewsQ: Page does not work on Chrome
I made a registration page, but in Chrome does not show the updated css of it, but by firefox shows all updated already. Then I climbed on the server to see through my cell phone, iphone 5s, and…
-
1
votes1
answer256
viewsQ: Is it possible to place an image inside the progress bar?
I wonder if it is possible to place an image inside the bootstrap progress bar, while the bar goes walking, soon the front of it goes like a small cart. That would be possible? Progress bar: <div…
-
0
votes1
answer1039
viewsQ: Insert percentage in progress bar (JAVASCRIPT)
I made a progress bar with bootstrap. Then each time something is filled in the table a certain percentage more is inserted in the bar. The data that is entered into the table comes from an API, so…
-
0
votes0
answers33
viewsQ: Generate auto-sequence of the api when you click on the specific product
I have a customer portal, and in this customer portal will have a page of "my purchases" there will show the products purchased, and when you click on it will appear the "tracking" of this product…
-
0
votes1
answer153
views -
0
votes1
answer62
viewsQ: play login data in API parameter
In the login I ask the user to put the email and Cpf, then I have an api that plays data in a table that I created, then I need to take the parameters Cpf and email to put in the api. Ex:…
-
1
votes1
answer43
viewsQ: User with own page
I’m making a portal, and to register need Cpf and email. Then I send a confirmation email, it clicks on the link and its situation in my comic changes. So the user can access the portal. It will…
-
1
votes1
answer265
viewsQ: Numbers in Cpf (JS) format
I get numbers from a Cpf coming from the API, then it goes to a table that I made, only the numbers are not in Cpf xxx.xxx.xxx-xx format and I would like it to stay, but I don’t know how. Just click…
-
0
votes2
answers238
viewsQ: Show Alert or mobile error message
I have a website, and it has the registration and when the registration already exists it shows an Alert saying this (this Alert I did in js, but it was within php), but when I put the page to be…
-
0
votes3
answers704
viewsA: Background image
You need to use media queries, it’s like code that Oce puts in css only for the screen sizes you want, e.g.: mobile, tablet... @media (min-width: 700px) { padding-top: 5em; ... } I advise you to…
-
2
votes3
answers628
viewsQ: Make html class appear and disappear by js
I have a registration page, and when the data is entered wrong, a alert(); reporting the error, but wish instead of being Alert, it was an error message just below the fields. I put a span with an…
-
0
votes3
answers1204
viewsA: Image in src goes to background-image and does not resize
Put it in percentage to see if it works. Example: #logo { width: 60%; height: 50%; } Remember to test the sizes there, it won’t necessarily be 100% or 50%.
-
0
votes2
answers31
viewsQ: Error in searching the register in the comic
I made a registration page on my website, which to register needs Cpf and email. I made a SELECT to see if it already exists, if yes, do not enter, otherwise do not enter. I left Cpf as pk and email…
-
2
votes2
answers2825
views -
0
votes2
answers2068
views -
0
votes0
answers192
views -
2
votes1
answer401
viewsQ: Send email to customer to check if there is or not
I made a registration to be entered the Cpf and email, the Cpf I was able to validate straight, to see if it works or not. But when the part comes to know if the email exists...I searched a lot and…
-
2
votes1
answer281
viewsA: Inform the user that the registration already exists
I resolved so: $var1 = $_POST['campo1']; $var2 = $_POST['campo2']; $query = "SELECT * FROM usar WHERE campo1 = '$var1' AND campo2 = '$var2'"; $querySelect = mysqli_query($conn, $query); if…
-
0
votes1
answer281
viewsQ: Inform the user that the registration already exists
I have a code to register the user on my site, he sees that the user is already registered and does not enter again in the table, but I can not inform the user that the registration already exists.…
-
0
votes1
answer749
viewsQ: querySelector takes class? (JAVASCRIPT)
I made a function to change a photo when an element is added in my table, table that I created a class to be able to change the photo, but to get the html element, I need to use querySelector, but…
-
0
votes2
answers168
viewsA: Security failure (PHP, JS, API, MYSQL)
I managed to solve it like this: Connecting to the database: <?php $conn = new mysqli("localhost", "root", "", "portal"); if ($conn->connect_error) { die("Falha ao conectar!, Motivo: " .…
-
0
votes2
answers168
viewsQ: Security failure (PHP, JS, API, MYSQL)
I made a site with login, registration and etc. I validated the login and registration with POST method, the site is on the server and everything, but when I put the link of the url already inside…
-
-1
votes1
answer72
viewsQ: Error connecting to database
I try to make the connection in my comic, but keeps giving the error "Failed to connect!" The data in my comic book is: Data Base: a test Table: customers trying to connect by PHP <?php $conn =…
-
5
votes5
answers47771
viewsQ: Centralize a table (HTML)
I made a table in mine HTML, but I couldn’t center it in the middle of the screen. She’s vertical and I’ve tried putting the text-align:center but it didn’t help. td, th { padding: .7em; margin: 0;…
-
0
votes1
answer128
viewsA: Add date in table
Already managed to solve the problem. A colleague of the site helped: function addColunaData(data){ var tabela = document.getElementsByClassName("table")[0]; //Pego a primeira coluna da primeira…
-
0
votes1
answer1903
viewsQ: Automatically set date and time in HTML table
How do I automatically set a date and time in my html table? Doing it by js. I created a table by js and entered in it data from my API, only that this data goes to the TD part of the table, and I…
-
0
votes1
answer128
viewsQ: Add date in table
I’m pulling an API and putting its data inside a table, but this data goes to the table part that is td, but I want to put the date that the data were implemented there, then the date would be in…
-
0
votes2
answers245
viewsQ: Responsive does not work right
I put 3 images with links at the beginning of the site, I put to be responsive, but when I lower the screen it gets all messed up. And I need the images to be in the center of the screen, one side…
-
0
votes1
answer2176
viewsQ: Change date format in Java?
My date format ta yyyy-mm-dd and I want to change to dd-mm-yyyy I’m pulling the data from an api, so I put it with the "-" example: 2017-12-31 because before it only came with 20171231 but I want to…
-
1
votes1
answer119
viewsQ: Javascript array in dates
I’m getting data from an API and I put it inside a table. The following are the codes I used to pull the api and put inside the table var botaoAdicionar = document.querySelector("#buscar-viagem");…
-
1
votes1
answer1655
viewsQ: Uncaught Typeerror: Cannot read Property 'NOME' of Undefined
I got a problem that’s killing me... I’m taking an API and putting it in a table there in the html, I made the Function to mount the td and everything, but when it arrives to put the API data in the…
-
2
votes2
answers863
viewsQ: Swap image by clicking it (JS, jquery)
I want to click on an image, and when I click on it, it will pull an api and I want the image to change to another one, only I can’t change the image. Note: the API is working, I just need to know…