Posts by Guto Xavier • 542 points
25 posts
-
1
votes2
answers94
viewsA: Validation of a form with javascript if at least one of the inputs of the table rows was completed before submitting the form?
Add a function to the onsubmit form to validate the form before sending. In function Send(), recover all available rows in the table and make a loop on those lines. With each loop interaction…
javascriptanswered Guto Xavier 542 -
1
votes2
answers915
viewsA: How to keep the data filled in <input> after clicking send the data?
You can use Localstorage. Put in the Onload from page to page call to a function that loads the information stored in Localstorage: <body onload="Carregar();"> The function Carry(); takes the…
-
1
votes1
answer808
viewsA: HTML5 and Javascript - Multiple Play/Pause Videos
In all videos you add the class standing still: <video controls class="w-100 meus_videos parado"> Whenever you start running a video with the class standing still, you fire an event:…
-
2
votes4
answers137
viewsA: Change word by clicking the same word. Javascript
If only to resolve this situation you can do using ternary operator. Follows code: <a href="#palavra" id="palavra"…
javascriptanswered Guto Xavier 542 -
2
votes3
answers185
viewsA: Where to place a function "toFixed()` to round up the value?
You can put directly on the function return return ((5/9) * (fahreinheit-32)).toFixed();. Follows code: <script type="text/javascript"> function conversao(fahreinheit) { return ((5/9) *…
-
7
votes2
answers469
viewsA: How do I make a comment in HTML?
In html the comment is: <!-- comentário --> <!-- start of comment --> end of comment
-
0
votes1
answer453
viewsA: Slick is not working
I downloaded the Slick , extracts the entire contents in a folder called Slick, I left all the contents in the root of the folder. Follow the code: <html lang="pt-br"> <head> <meta…
-
0
votes1
answer27
viewsA: Change database information via PHP
You wrote THERE but it should be WHERE. Follows modified code: <?php $servername = "localhost"; $database = "tedinfo1_app"; $username = "tedinfo1_app"; $password = "123456789"; // Create…
-
1
votes4
answers47
viewsA: Help with responsiveness and alignment
You can use Flex Container. I changed your code, where I created a div with id="content" I applied to her display: flex; and flex-wrap: wrap;. I also changed your class .actionBox adding min-width:…
-
0
votes1
answer146
viewsA: drag Divs/lessons and get Div’s position
I made an example here using jQuery, where you change the order of div’s and is returned to the current order of div’s. Follows the code: HTML + JS <!DOCTYPE html> <html> <head>…
-
2
votes1
answer487
viewsA: Change placeholder by clicking the radio
You can enter a <label> within <p class="p_pagamento" id="InputPagamento1"> and amend the text of that label. Follows the html and the js: $(document).ready(function() {…
-
0
votes1
answer214
viewsA: How to view the selected file names in the Multiple file?
See if this idea solves the situation: I created a span in front of the input file I just add content to that span if more than one file is selected. Follows the code <script…
-
0
votes2
answers134
viewsA: How do I leave the right-aligned button on top of the table?
The simplest way is to remove the formatting left of button, insert a div to be the container of button and apply a formatting text-align:right in that div. Follow an example: <div…
-
0
votes1
answer89
viewsA: How to read table data and erase this data
Hello, you want to delete only from table html or of mysql also? To delete only this table html you can use the method remove() of javascript. I changed the function of your button Eliminate user…
-
1
votes3
answers99
viewsA: How to calculate the Javascript input value and the result appear in the alert?
The problem is in your javascript, in function calculation, different operator in javascript is the != and not the <> as you are using. Follows the corrected function: function…
-
1
votes1
answer63
viewsA: query result without refresh JS
You can do this update without refreshing using jquery and ajax. First, in the time selection select you add a call to a function (Verifiable) javascript passing the value of select itself as…
-
-2
votes1
answer97
viewsA: What is the operator for?
According to the MDN: Bit-to-bit operators are operators treated as 32 sequence bits ( zeros and ones ), preferably as decimal, hexadecimal, or octal numbers. For example, the decimal number 9 had…
-
0
votes1
answer58
viewsA: Problem sending form to e-mail
Hello, can you show the part of PHP that sends the email? I believe this is where the problem is. If you are using the Phpmailer, follows the solution I use. <?php…
-
0
votes1
answer471
viewsA: Sum Column HTML Table
Good afternoon, I made some modifications to html and javascript and it worked. In HTML I added thead and tbody, and in js I left everything in function ready: <!DOCTYPE html> <html…
-
0
votes1
answer84
viewsA: Select does not show the selected row
Looks like you’re using the library Select2, if this is the case, after bringing the data and filling in the selects you need to run the Select2 again to effect the changes and render them:…
-
0
votes1
answer124
viewsA: footer positioning!
If the situation is just the footer grabbing the entire screen, you can add the css below and see if it solves: footer{ background-color: green; width: 100%; height: 20px; position: fixed; bottom:…
-
-1
votes1
answer28
viewsA: Enable the menu link after loading the page
Samuel see if that’s what you need: window.onload =function(){ var lista = document.getElementById('lista'); var link = document.querySelectorAll('#lista a'); var url_atual = window.location.href;…
javascriptanswered Guto Xavier 542 -
0
votes1
answer554
viewsA: Limit end date according to start date on bootstrap-datepicker
$('inputIni').datetimepicker({ locale: 'pt-br', format: 'DD/MM/YYYY' }); $('.inputFim').datetimepicker({ locale: 'pt-br', format: 'DD/MM/YYYY', useCurrent: false }); $(".inputIni").on("dp.change",…
-
0
votes1
answer357
viewsA: Set language in index.php
If you are using PHP 7 you can use the coalescence operator: $lang = $_GET["lang"] ?? $_GET["lang"] : 'pt';
-
1
votes1
answer78
viewsA: Security in a Task Management System
Here are some things I’ve done on my app recently: Update version of PHP properly configure htaccess (this I think helps a lot) Validate data entry against XSS Apply Prepared statements to mysqli…