Posts by Bruno • 1,304 points
185 posts
-
1
votes1
answer260
viewsQ: High charts in php and mysql
I am trying to create dynamic highchart charts in php and mysql. I started by creating the database queries: $query = "SELECT Descricao, COUNT(Descricao) AS Tarefa FROM raddb.Tarefa AS A LEFT OUTER…
-
1
votes1
answer271
viewsQ: return data from a select in the modal
Do insert, update and select with modal. When I edit load the data returned in inputs, in checkbox, us textarea, but we select does not load the information. Code where I query the data and create…
-
2
votes1
answer116
viewsQ: jspadf and canvas, does not screenshot the full modal
I have the following code on the page where I check the data with the modal (function($){ $.fn.createPdf = function(parametros) { var config = { 'fileName':'html-to-pdf' }; if (parametros){…
-
0
votes1
answer497
viewsQ: Jspdf and responsive canvas
I’m generating PDF with jspdf and do the screenshot with the canvas. The form which generates the PDF is very large and generates more than one page. Code: window.html2canvas = html2canvas; function…
-
1
votes2
answers391
viewsQ: visible or invisible input when selecting checkbox
The Form has a checkbox that when selecting shows an input that is hidden. It is working correctly, when I enter the page the input is hidden and is only visible when I select the checkbox, as I…
-
1
votes1
answer38
viewsQ: Form insert with checkbox
I have this form, where I have a checkbox: <div class="table-responsive"> <?php $user = (!empty($_GET['codigo'])) ? $_GET['codigo'] : ''; ?> <input type="hidden" id="codigo"…
-
1
votes1
answer896
viewsQ: Print two or more pages using jsPDF
I’m generating my own html in PDF with JsPDF. My html is larger than an A4 sheet. To solve the problem I need to create paging in Jspdf. Code I have that only generates pdf with a page:…
-
1
votes1
answer338
viewsQ: PDF generated goes blank with Jspdf
Body of html: <div id="content"> <div class="table-responsive" > <table class="table">'; while($row = mysqli_fetch_array($result)) { $output .= ' <div class="modal-body">…
-
1
votes1
answer48
viewsQ: Select checkbox and show a select
I intend to select the checkbox make a select visible. Code: $("#check").click(function() { if ($(this).val() == "Sim") { $("#Acompnhante").css("visibility", "visible"); $(this).val("false"); } else…
-
0
votes1
answer31
viewsQ: Problems Making Echo of a Textarea Notebook
I created a Notebook Textarea to record important information of the day. By doing echo within the Notebook Textarea creates a different one for each row inserted in the database table, as shown in…
-
1
votes2
answers128
viewsQ: Button does not show full name
I have several buttons inside my divs. I leave the css that I use to put the div side by side and the css to set the size of all buttons so that they are all the same. But then I have the problem…
-
2
votes1
answer74
viewsQ: Button and input color problem with bootstrap 3.3.7
I have a problem with the colors of my buttons, and I haven’t figured out how to fix it yet. If you have a button with type submit doesn’t stay in the color I want. Example with type submit:…
-
0
votes1
answer49
viewsQ: Clicking on the page always calls the first div
I have two section on the same page. Inside each page section have a div, but when I click on the page of the second div always returns me to the first div. code: <?php require("conexao.php");…
-
2
votes1
answer149
viewsQ: Paging within a div
I’m creating pagination inside a div and I intend that from page to page returns 5 in 5 lines, but it’s not working, when I click to open the second page does not return 5 different lines, only…
-
-1
votes2
answers80
viewsQ: Input datetime has no calendar option
In input date gives the option to open calendar to select the date, in the datetime you don’t have that option. <script…
-
1
votes1
answer263
viewsQ: Fill in input with the day of the week according to the date in the previous input
I created two inputs. The first one assigned the pre-filled date in this way: <strong><label for="Data">Data Reserva</label></strong> <input type="date" id="Data"…
-
-2
votes1
answer175
viewsQ: Does not return Number of unread messages
I intend to display the number of unread messages. I am using the following code: Where returns the value of unread messages: <a href="#" class="notification"> <input type="button"…
javascriptasked Bruno 1,304 -
-2
votes2
answers153
viewsQ: Assign returned Success value to a variable
I have the following requisition ajax where it returns the value in success: function novasMensagens(Alerta) { var retorno = Alerta > 0 ? Alerta : ""; $.ajax({ type: 'GET', url : './fetchbusca',…
-
0
votes2
answers295
viewsQ: Return value per json and return to a function
I have the following function: function novasMensagens(Alerta) { var retorno = Alerta > 0 ? Alerta : ""; return retorno; } document.getElementById("msgNumero").innerHTML = novasMensagens(); Now I…
-
0
votes1
answer59
viewsQ: Alert number of unread messages
I am creating internal message exchange in my project, as shown in the image: On the button with the image surrounded in red intended to show an alert with the number of messages not yet read, which…
javascriptasked Bruno 1,304 -
1
votes1
answer24
viewsQ: Remove with php line in mysql
I have this function to send the array to the php file: function deletar(){ var ids = []; //arraypara armazenar os id's a serem deletados $(".colorir").each(function(){ //percorre todos os tr que…
-
1
votes2
answers315
viewsQ: delete from a row of the selected table
I have the following div: <div id="div_conteudo" align="center"> <div id="header"> <input type="button" name="Delete" class="botao1" style="float: right; margin-right:-12%">…
-
0
votes2
answers126
viewsQ: Validate read or unread message
I created an email system. I now want to check the messages read (appear without Bold) and unread (appear Bold) by the user. I create the table with the emails this way: <?php while($row =…
-
2
votes2
answers33
viewsQ: Organizing information in table
I am creating the following table: <div class="div1" id="employee_table"> <table class="table table-bordered"> <tr> <th width="10%">De</th> <th…
-
0
votes0
answers24
viewsQ: Retrieve emails from gmail and views
I am trying to create my email application. To recover gmail emails to display in my project I am using Mootools Fx.Accordion. Code: <html lang="PT-pt"> <head> <meta name="viewport"…
javascriptasked Bruno 1,304 -
0
votes1
answer89
viewsQ: Open and close textarea with the same button
HTML of textarea with the open button: <input type="button" name="abrir" class="botao"> <div id="comentario" style="display:none"> <textarea id="Observacao" name="Observacao"…
-
0
votes0
answers31
viewsQ: Insert into mysql with php and ajax function
I created the fields to be filled with the following html: <!DOCTYPE html> <html lang="PT-pt"> <head> <meta charset="utf-8" /> <title>Código de Barras</title>…
javascriptasked Bruno 1,304 -
1
votes2
answers48
viewsQ: Disable button after insert
I want the button, after clicking to insert, to be locked. I can only insert once each button, which represents a task. Knob: <button class="btn btn-info" onclick="return confirm('Pretende…
-
-1
votes2
answers44
viewsQ: Save date and time of start of task with button and insert in mysql
I have the following form that correctly inserts in the database by clicking the button: $("#form").submit(function(e){ $.ajax({ type: "POST", url: "./conexaoteste", data: $("#form").serialize(), //…
-
0
votes2
answers55
viewsQ: Click the button and show only date and time
I have this button to start the task: $('#IniciarTarefa').on('click', function () { $(this).closest('.form-group').data('inicio', new Date().getTime()); }); $('#mostrar').on('click', function () {…
javascriptasked Bruno 1,304 -
1
votes2
answers43
viewsQ: Insert button value into database
In my project I am creating buttons (in exchange for a form) with the name of the tasks to register daily, so it becomes more practical and faster to register. Code with the buttons: <div…
-
0
votes1
answer1135
viewsQ: Create Qr Code reader with Webcodecam
I’m using Webcodecam to detect and scan the value of a barcode or QR code displayed in front of the webcam. A callback function is invoked when the image is Barcode or the QR code is decoded. You…
-
1
votes1
answer1082
viewsQ: Syntax error (Unexpected Identifier)
I have the following script, where I am getting the following error on the console: Uncaught Syntaxerror: Unexpected Identifier $('#qr-canvas').WebCodeCam({ ReadQRCode: true, // false or true…
javascriptasked Bruno 1,304 -
1
votes0
answers215
viewsQ: Automatically insert into mysql when reading barcode
I’m trying to create an internal project to record employees' tasks with barcode reading. Right now I have an example of code to read the code and submit in the database table. Code: <!DOCTYPE…
-
2
votes2
answers53
viewsQ: Positioning of the third div
I have 3 Ivs and the idea is that the first two next to each other, so I used the float: left: <div class="div1" id="employee_table" style="float: left;"> </div> <div class="div2"…
-
0
votes1
answer119
viewsQ: Always keep a visible Section in php
I created a menu and for each of them I created one section. After the menu I created a form with the inputs to filter by collaboration and by date. I then created the sections. Code: <script>…
-
0
votes1
answer203
viewsA: Improve way to disable textarea
To disable and activate textarea used the function prop() where one button is active and the other button is deactivated textarea. I attached the event handler using the function click which is…
-
0
votes1
answer398
viewsA: Populate radio input with database data
First I created the variable lis to receive the amount input radio received from the database: var lis = $("#Estado").val(); Then inside the function data created another variable with the value…
-
1
votes1
answer398
viewsQ: Populate radio input with database data
When I consult the form returns the input radio filled with data from the database, as shown in the input and image: <input type="radio" id="Estado" name="Estado" value="Pendente" ' . (…
-
-2
votes1
answer203
viewsQ: Improve way to disable textarea
I have this button to enter a new record: <button type="button" name="add6" id="add6" class="btn btn-primary disable" data-toggle="modal" data-target="#exampleModal6"…
-
2
votes1
answer77
viewsQ: Switch from Section by clicking on menu
I created a menu as follows: <div class="wrapper"> <nav class="vertical"> <ul class="men clearfix1"> <li><a href="#Tarefas Diárias">Tarefas Diárias</a> <!--…
-
2
votes0
answers75
viewsQ: Improve Mysql query performance
I have this query where I do left join to three tables and returns the data from the 3 tables: SELECT Carro, Produto, Sim, DataP, Stock, Obsevacao, Colaborador, DATE(`Data`) AS `Data`,…
-
1
votes1
answer58
viewsQ: Two arguments within a Javascript function
I have this function with the argument '.edit_data': $(document).on('click', '.edit_data', function(){ var employee_id = $(this).attr("Id"); $.ajax({ url:"./fetch16", method:"POST",…
-
3
votes2
answers124
viewsQ: Get the date of the first Tuesday of each month
To return the previous Tuesday I do this way: $dia = new DateTime(); $dia->modify( 'previous tuesday' ); $terca = $dia->format('Y-m-d'); Now intended to return the first Tuesday of each month…
-
0
votes1
answer57
viewsQ: Does not return date in input
I always want to show the previous Tuesday in the input and for that I do it this way: $dia = new DateTime(); $dia->modify( 'previous tuesday' ); $terca = date($dia->format('d-m-Y')); Then I…
-
0
votes2
answers431
viewsA: Enable and disable php button
I created a variable with the current date that compares with the date of registration. I created an empty disabled variable. I put this disabled variable in the link. If the date is different from…
-
0
votes2
answers431
viewsQ: Enable and disable php button
I have this edit button which is always available for editing: <a type="button" name="edit3" id="'.$row["Id"].','.$row["IdConsulta"].'" data-toggle="modal" href="#add_data_Modal3" class="btn…
-
0
votes1
answer66
viewsQ: Return record of each query as I click the button
I have 3 query record in a table of the database of the same user. When I query returns and shows the most recent query of the database table. I intend to return the 3 queries, always show the most…
-
0
votes2
answers39
viewsQ: Ternary operator returns error 500
I wanted it on condition whenever the input text is equal to an off value input radio, but always returns error 500 when running on the page: $y = 0; while($rows_cursos =…
-
0
votes1
answer78
viewsQ: Put radio input disable
Table within the While to create the table with inputs radio dynamic: $y = 0; while($rows_cursos = mysqli_fetch_array($resultado_cursos)) { $tabela1 .= '<tr>'; $tabela1 .= '<td>…