Posts by Bruno • 1,304 points
185 posts
-
0
votes2
answers57
viewsQ: Add and remove rows in a table
I created my table this way with button to add and delete lines: function addAgregado(){ $("#riscos").append("<div>"+$("#riscoform").html()+"</div>"); } $("#tbUser").on('click',…
-
-1
votes1
answer15
viewsQ: Error returning dynamic form
I want to create a dynamic form but I get the following error: javprogram.js:377 Uncaught Typeerror: "#retorno3". html is not a Function At Object.Success (javprogram.js:377) at fire…
-
0
votes1
answer83
viewsQ: Create dynamic form in javascript
I am trying the form dynamically in javascript. For this I created the form first: <form class="text-center border border-light largura" action="#!" id="retorno"> </form> Then I have the…
-
0
votes1
answer30
viewsQ: Disable input in the form
I intend to disable form inputs. I know that the disabled or the readonly does this process. I intend to use the readonly on the form. I’ll post the code and then explain the problem: @import…
-
1
votes0
answers58
viewsQ: take the value of the variable in javascript
I write my table this way: for (var i = pagina * tamanhoPagina; i < data.length && i < (pagina + 1) * tamanhoPagina; i++) { Ida = data[i][0]; Paraa = data[i][9];; tbody.append(…
javascriptasked Bruno 1,304 -
1
votes1
answer60
viewsQ: Select row from table
I have the following table, js and Cs: HTML: var tr = $('table tr:not(:first-child)'); tr.on('click', function () { var self = this; tr.each(function(){ if(this == self)…
-
-2
votes2
answers117
viewsQ: How to use while in javascript
I need to use the do and the while in javascript, but I never did and I’m having some doubts. I’m using it this way: $(function () { $.getJSON('./alertas', function (data) { var linha = ``; var…
javascriptasked Bruno 1,304 -
-1
votes1
answer31
viewsQ: Return data within a period of time
I have the following query: SELECT raddb.FisioterapiaUtente.Id, DataConsulta, Inicio, Fim, raddb.UtentesCD.Utente, nome FROM raddb.FisioterapiaUtente LEFT OUTER JOIN raddb.usuarios ON…
-
0
votes1
answer93
viewsQ: Change the display form of selected items in select
I have the select with search field and with all selected default values, as shown: $(document).ready(function() { $(".meuselect").select2(); }); <link…
-
0
votes1
answer151
viewsQ: Text already written in the blocked textarea
I got the following textarea already with a part of the text typed: <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <textarea…
-
0
votes1
answer45
viewsQ: Remove multiple rows from table when changing state
When changing the state of the table rows, I intend that users do not see them. In this case I change the state in several rows at the same time. So by changing the state of the rows, I want to…
javascriptasked Bruno 1,304 -
-3
votes2
answers94
viewsQ: When logging in redirect to more than one page
For example, I am validating the login to redirect to the pages according to the access level: if($_SESSION['usuarioNiveisAcessoId'] == "1"){ header("Location: ./index.php/administrativo");…
-
1
votes1
answer106
viewsQ: input datetime does not show calendar
I got my input datetime in this way: <li> <label for="DataQueda">Data/Hora Registo</label> <input type="datetime" class="form-control" id="DataQueda" name="DataQueda"…
-
1
votes1
answer80
viewsQ: Fix a table header inside a form
I have the following code, where the table is inside a form and I intend to pin the headline but it’s not working: <div class="wrapper"> <div class="sidebar"> <ul class="nav1">…
-
0
votes2
answers432
viewsQ: Set select search text in html
I got the following select: <label>Para</label> <div class="input_field"> <select class="form-control" name="Para[]" id="Para" multiple> <option></option>…
-
0
votes2
answers213
viewsQ: condition in onclick
I intend to create a onclick button insert into database. I have the following duties: Insert function: function inserir_registo() { var dadosajax = { 'Tipo' : $("#Tipo").val(), 'Prioridade' :…
-
2
votes1
answer32
viewsA: Refresh in table in ajax function Success
I resolved as follows, to remove the line in case of success: I added this line before ajax: let rowToBeRemoved = $("#"+$("#Id2").val()); and inside the ajax I put: rowToBeRemoved.remove(); Complete…
javascriptanswered Bruno 1,304 -
1
votes1
answer32
viewsQ: Refresh in table in ajax function Success
I have the following table where I have two buttons to make delete and update. When I do delete automatically removes the table row. But when I edit the line and change status the user continues to…
javascriptasked Bruno 1,304 -
1
votes2
answers241
viewsQ: Delete button crashes
I have two buttons on my table, the edit and delete button: <td><button type="button" name="edit" id="<?php echo $produto2["Id"]; ?>" data-target="#add_data_Modal2" class="btn…
-
1
votes1
answer26
viewsQ: Create a button to register in the database each day
I’m creating my table this way: <div id="spoiler8" class="esconde"> <table class="table table-responsive" id="employee_table8"> <h1 style="font-size:…
-
1
votes3
answers70
viewsQ: When opening a div hide the div anteiror
I will have several Ivs, and I intend to click the button to open the div of that button and close the previous one. I am doing so: function mostraDiv(obj) { var el =…
-
2
votes1
answer71
viewsQ: Asynchronous request to return the updated table
I’m using an asynchronous request to return the updated table and replace the previous one, but I’m having trouble showing the data. Code with my table: <div id="spoiler" style="display:…
-
0
votes1
answer198
viewsQ: Update table after closing modal
I have my table this way: <div id="spoiler" style="display: none;"> <table class="table table-responsive" id="employee_table"> <h1 style="font-size: 30px"><strong>Saída de…
-
4
votes3
answers144
viewsQ: Return last contributor who checked the car
I intend to return the last contributor who checked the car products before what you are currently checking. The car has to be the same and just in case there’s any product checked in the car like…
-
0
votes1
answer109
viewsQ: Responsive table is deformed
I am creating the following responsive table, but it does not agree with what I want: CSS: table { max-width: 100%; background-color: transparent; border-collapse: collapse; border-spacing: 0;…
-
0
votes1
answer110
viewsQ: Difficulty creating a mysql query
I have this table: Typotarefa: Id, Descricao 17, Depilação Buço 18, Depilação Pernas 19, Depilação Orelhas 20, Depilação Barba 21, Cortar Unhas Pés 22, Cortar Unhas Mãos 28, Esvaziar Saco Urina 29,…
-
0
votes1
answer66
viewsQ: Create an animation on the wordpress site
I am creating an animation on the main wordpress page. To do this I am doing it as follows: $(document).ready(function(){ (function mover(i){ $('#seta').animate({top: (i ? "-" : "+")+"100px"}, 1000,…
-
1
votes2
answers88
viewsQ: Send data by json with highcharts
I’m creating charts with highcharts in my project, but I’m struggling to send more than two values per json. I will now explain: Page where I send the data by json: $stmt = $conn->prepare(SELECT…
-
2
votes2
answers34
viewsQ: Show slect if previous select receives value
I intend to create a select on my login page, but I intend to show the same only in case the select previous receive value. That one select which receives the first value, already depends on a…
javascriptasked Bruno 1,304 -
1
votes1
answer219
viewsQ: Select row in table to delete
I created a warning system, where I want to give the possibility to delete the alert if desired. I have the following table and delete button: <button type="button" name="Delete"…
-
1
votes1
answer118
viewsA: Multiply two columns with datatables
I solved the problem this way: Defeni in the column where I want to show the result inside the <tfoot></tfoot>: <tfoot> <tr> <td colspan="9" align="Right">Valor Total:…
javascriptanswered Bruno 1,304 -
1
votes1
answer118
viewsQ: Multiply two columns with datatables
I intend to multiply two columns with datatables. I have my table this way: <table border="5" class="teste1" method="POST" id="table"> <thead> <tr> <th class="filter"…
javascriptasked Bruno 1,304 -
1
votes0
answers20
viewsQ: Sum total of a column with excelTableFilter
I have a table that is returned with the while and created filters in it with excelTableFilter. Now when filtering in the table I wanted to add the total quantity * the price. Code: $tabela1 .=…
-
1
votes1
answer40
viewsQ: If you return data from the database Else is invalid
I created a table to be filled with Datatables. If you return data from the database, I want you to take the last date of the date field and fill in the date of the day following that in the…
javascriptasked Bruno 1,304 -
2
votes1
answer73
viewsQ: Add next date whenever I create a new line
I created a table to do insert, update and delete with datatables. I want to add a new row, in the date column, which automatically fills in with the date next to the previous row. Example. On the…
javascriptasked Bruno 1,304 -
0
votes1
answer128
viewsQ: Apply to everyone with checkbox
I record meals this way, as shown in the picture: I created the button Apply to All, which is to, after filling in the first day of the month, fill in the remaining days of the month with the same…
-
0
votes1
answer38
viewsA: Get a variable by URL
I sent the amount along with the reply, this way: header('Content-Type: application/json'); if($teste4 > $teste3 AND $teste5 == $teste7 AND $teste6 == $_SESSION['usuarioId']) { //expired echo…
-
0
votes1
answer38
viewsQ: Get a variable by URL
I am doing a check to send alerts if it exceeds the time when a task has to be done. Code Jquery: function session_checking1() { $.post( "./alertaposicionamento", function( data ) { if(data == "-1")…
-
0
votes1
answer71
viewsQ: Insert value received in javascript
I have the following code: <p>Your browser fingerprint: <strong id="fp"></strong></p> <p>Time took to calculate the fingerprint: <var id="time"></var>…
-
1
votes1
answer27
viewsQ: Insert numbers before variable
I want to insert the variable phone with the 351 before the variable, I’m trying this way: $query = 'INSERT INTO raddb.Utente (telefone) VALUES ( ?)'; $stmt = $conn->prepare( $query );…
-
1
votes1
answer77
viewsQ: Password check on select Where
I changed the security of my site. I changed the format when saving the password sha1 for password_hash. With the sha1 to validate the login did this way: if((isset($_POST['nome'])) &&…
-
0
votes1
answer16
viewsQ: Login data is visible on the browser console
I log in this way: <div class="container"> <form class="form-signin" method="POST" action="./index.php/valida"> <h2 class="form-signin-heading">Área Restrita</h2> <label…
-
0
votes1
answer97
viewsQ: Record logout time in the session table
I am logging the data into the database table whenever there is a login, but I intend to do update at the time of logout. To do the Insert, do it in by validating the user login:…
-
0
votes1
answer40
viewsQ: Dynamic search when writing to input
I have created a pagination and search system in my project. I intend to make an improvement to my system. When I do a search, it only returns results after clicking the search button inside the…
-
0
votes4
answers239
viewsA: Problems with paging on the search page
I solved this way. On the page where you see the alerts I created this form: <form class="form-inline" method="GET" action="./busca"> <div class="form-group"> <label…
-
2
votes4
answers239
viewsQ: Problems with paging on the search page
I’m creating an input for searching my table, but I’m having problems with paging on the page where I search. Page where I create the table and make the normal pagination: <div id="resultado">…
-
0
votes1
answer17
viewsQ: Error in my page echo code
I’m creating a search system, but on the page where I’m doing the research I’m getting an error in the code on the echo and I can’t seem to solve. <?php $campo="%".$_POST['campo']."%";…
-
1
votes0
answers34
viewsQ: Query in returned query
I am creating my table with paging in this way and with the possibility of searching with a input: <?php $itens_por_pagina = 5; $pagina = intval($_GET['pagina']); if (!$pagina) { $pc = "0"; }…
-
3
votes1
answer317
viewsQ: Select multiple options in select
I have this select: <div> <label for="Indicar">Colaborador: </label> <select class="form-control" name="Notas" id="Notas26"> <option></option> <?php $sql =…
-
1
votes2
answers126
viewsQ: Force to fill checkbox whenever you register a task
I have the following form to record tasks. I record tasks separately. Code: <div class="form-group"> <div> <label for="Indicar">Comeu Bem: </label> <label for="Notas">…