Posts by Neo • 532 points
53 posts
-
2
votes0
answers54
viewsQ: mysql if - how to apply to equal records
Hello! staff I am trying to select and apply a rule only in equal records. I need all records to be listed, but in those that are equal, a specific rule is applied; For example, select all client…
-
0
votes1
answer35
viewsA: Checkbox in grid with ajax - how to send array
Solved guys, follow the full code: <meta charset="utf-8"> <style> table{ display:block; border:1px solid #ccc; } table thead{ display:block; border:1px solid #ccc; } table tbody{…
-
-1
votes1
answer35
viewsQ: Checkbox in grid with ajax - how to send array
Hello! I’m assembling a feature where I need to send multiple chosen records in a grid by clicking on their checkbox... does anyone know how to save these chosen id’s and send via ajax/jquery to a…
-
0
votes1
answer77
viewsQ: CSS for printing - How to control data flow
Good afternoon! I’m setting up a layout for printing, where there will be a lot of data that exceeds more than one page. Does anyone know how to control the amount of data per page not to cut the…
-
1
votes1
answer67
viewsQ: Integrate with Payu - How to read data individually
Hello! I am integrating with an online payment feature called Payu. I am not being able to read the return data individually. The code I’m using: $url =…
-
0
votes2
answers462
viewsA: How to format numerical data extracted from the database for monetary values?
Hello @Ruama, try to make a php explode at the value obtained by the bd select, before displaying it in the form. For example: $sql = "SELECT * FROM TABELA WHERE id=$id_escolhido"; $rs =…
-
0
votes0
answers890
viewsQ: Creating and consuming PHP+JSON webservice - I can’t make the configuration
I’m making a webservice, without any framework, using PHP+JSON, with localhost xampp initially, so I’ll put it on some cloud server. I created in xampp/htdocs two folders, "client" and "vendor", in…
-
2
votes1
answer2134
views -
0
votes2
answers624
viewsA: How to use AJAX in an iframe?
Hello @David Caina, let’s consider that you have 2 files: In a vc put a div to receive the iframe, and put the ajax with the following code in the Success: html: div class=".recept_iframe" /div no…
-
0
votes2
answers119
viewsA: How to manipulate objects inside a div?
Hello @Jeferson-Heavy, let’s see if we can clear this idea... then you need 3 columns with an image and title within each. I’ll see if I can give you the best solution within your architecture. I…
-
1
votes2
answers314
viewsA: count repeated fields from a column
Hello @Mayron, I’ll put an example for you to see how you can check the repeated values: <?php $valores = array(1, 2, 2, 3, 3, 3, 4, 4, 4, 4); $contagem = array_count_values($valores);…
-
0
votes2
answers83
viewsA: show input when selecting an optin inside while in php
Hello @user122281, you can do as follows: <?php $parametro_empresa = filter_input(INPUT_GET,"parametro_empresa"); $empresa = "SELECT * FROM tb_empresa WHERE razaosocial_pessoafisica LIKE '%" .…
-
1
votes1
answer82
viewsA: Pass Mysql result to Highcharts
Hi @wribeiro , From what I saw how would like in the print, let’s see if we set properly: You need to get in while the data so: php: while ($row = mysqli_fetch_array($query)){ $nomreg =…
-
3
votes3
answers810
viewsQ: php Session - destroy all Sessions and keep only one active
Hello, I need to destroy all Sesssions when logging out a system except for just one... someone would know how to implement this with php? For example: Let’s say I have 5 active sesssions when the…
-
1
votes1
answer157
viewsA: Site does not get responsive in Mobile dimension
Hello @Matheus Lopes, Add this tag to the top of your website: <meta name="viewport" content="width=device-width, initial-scale=1.0"> This will cause the display on the device to be scaled to…
-
0
votes1
answer50
viewsQ: Dynamic upload input layout with gallery
Hello, I’m creating a resource where the mechanism should: choose an image in the input when performing input change, a new one is created via js next when I get there, I need help, because the…
-
0
votes2
answers144
viewsA: Reuse AJAX calls with jQuery
Hi @Mcunha98, You can create a structure with PHP/Jquery. Where the ajax will be as a centralized file, and every time you run a command, define that file by sending values to it, receiving via…
-
0
votes2
answers114
viewsA: HTML redirection
Let’s initially think about the centralized responsive and link structure: html: <div class="box_wrapp"> <a href="pagina1.html"> <span class="text">Segunda</span> </a>…
-
0
votes2
answers60
viewsA: Calculate total orders and total orders for the current month with Mysql
Hi @Daywison Ferreira Leal, you need to do a BETWEEN in the current month. it would be something like that: $mes_atual = date('m'); select name, count(*) as total from pedidos WHERE mes_vigente…
-
2
votes3
answers74
viewsA: Just clear the field I want
Hello, You currently clear all form fields in complete Function() with this code: $("#feedback_form16").find('input').val(''); //clear text So you need to clear only the quantity input, right? Add…
-
1
votes1
answer2104
views -
2
votes1
answer54
viewsA: When making an ajax request, are there problems if user reload page right away?
Hello @Marcos Silva, Uses the ajax beforeSend() when the list is loading, keeps the user informed that this is happening through a buffer/preloader, and it would be relevant to leave the user…
-
0
votes2
answers71
viewsA: Doubt HTML attribute sum
Hello @sev3ndie, you can perform Submit with ajax, js: $("#form1").submit(function(){ $.ajax({ url:"get_link.php", success:function(data){ window.open("http://site.com.br/"+data); } }); return false…
-
0
votes3
answers113
viewsA: If condition not to show images that do not exist PHP
Hello @Emmanuel, Do you have a field for every photo in the database that? So you save the name of the image in each of them. An alternative would be to save the name of the images in a single…
-
0
votes2
answers131
viewsA: Find class of a dynamically created element
Hi @John, You want to change the color of the class Priority Nav, this? Via css you can do: .priority-nav{ background-color:red!important; } or If you can use jquery, try it this way:…
javascriptanswered Neo 532 -
0
votes0
answers784
viewsQ: Filtering by date with dataTables how to do - uncomplicated
Hello! I’m implementing the data filter with jquery datatable, with the draw() feature embedded. It’s a little complicated so I’d like to see if anyone can understand. I put the code in the fiddle:…
-
0
votes1
answer99
viewsA: Send information without finalizing the form (Submit)
Hi @Jvs Corrêa, Let’s assume that you are already with Ajax implemented, if you are not need to add a code like this: $("#form1 .next").click(function(){ var form = $(this); var formdata = false; if…
-
0
votes3
answers386
viewsA: I can’t align a form to the right
Hello, @School of Life, Use the float:right property, and you may also be missing the display so that the element is assigned to the context of the wrap, thus: .yellow{ display:inline-block;…
-
2
votes4
answers745
viewsQ: Sort Divs by date in dd/mm/yyyy format
Does anyone know how I can sort a set of Ivs through a date present in their content? for example: <div class="box" id="box1"> <div class="date">01/05/2018</div> </div>…
-
0
votes2
answers139
viewsQ: Ajax with clean url how to use browser back
Hello, Does anyone know how I can use the back of the browser with some ajax/jquery feature, considering that the url is clean? For example, when browsing a php session is created, so when I…
-
2
votes1
answer1209
viewsQ: swap pseudo :after with jquery
How can I change the style of a :after class using jquery? I tried it but it didn’t work: HTML: <div class="box"></div> Jquery: $('.box:after').css({ borderColor:' #c12 transparent…
javascriptasked Neo 532 -
0
votes0
answers93
viewsQ: Creating 2d board with images
Hello, I am creating a board game2d with Js/html/CSS, With the code below I can make each div’s text move across the board, but I can’t make those pieces images... In the codepen below you can see…
-
0
votes0
answers31
viewsQ: Make banner accept drag image
Hello, I’m wearing one jquery banner slider. I’d like to know how to get him to agree to drag the image through the slide. In your options there is no, but someone knows how to implement this…
-
0
votes1
answer81
viewsQ: How to make "$(window). scroll" run only once?
When performing the scroll, the function performs normally, but keeps repeating every time I continue with the mouse scroll. I’d like to know how to make it run only once. I’m doing like this:…
-
-1
votes2
answers996
viewsQ: Error in PHP 7: Call to Undefined Function sql_regcase
Does anyone know what this function would look like in PHP 7? function AntiSqlInjection($dados){ if (!get_magic_quotes_gpc){ addslashes($dados); } $dados= strip_tags($dados); $dados=…
-
1
votes0
answers22
viewsQ: Close - before or after nection?
What’s better, close before or after the while? For example, Modo1: $sql= "SELECT * FROM tabela"; $rs = mysql_query($sql,$connect); mysql_close($connect); while($row = mysql_fetch_array($rs)){ $nome…
-
2
votes1
answer2783
viewsQ: Upload ajax jquery php
I need the image upload to be done with ajax/jquery, following this structure: Form: <form> <input type="text" name="seu_nome" /> <input type="text" name="sua_senha" /> <input…
-
0
votes4
answers289
viewsQ: Php Array - Associating data
Hello, I would like to associate the data of chosen in checkbox, with those of an input. I have on one side, a list of results, where I will select in a checkbox, and each one will receive a new…
-
3
votes0
answers138
viewsQ: Jquery Ajax - During upload - show real-time return date
I want the user to be able to track the progress of each shipment in an application. I have on one side, sending via ajax, and with php I perform a foreach for batch sending. For example, select id…
-
1
votes2
answers60
viewsA: Insert during a defined amount (PHP)
I got it like this: $nome="Eu"; $quantidade_escolhida="6"; $a="1"; while($a <= $quantidade_escolhida){ $insert = "INSERT INTO tabela(id,nome) VALUES ('$a','$nome')"; $rs_insert =…
-
1
votes2
answers60
viewsQ: Insert during a defined amount (PHP)
Hello, Guys, I want an action to be carried out over a certain amount of times defined by a form. For example: The user chooses 5, then the code Isere 5 records in the database. Since each record…
-
0
votes4
answers1486
viewsA: Calculate inputs with Javascript
Real-time calculation can be solved like this: <form action=""> Total produto1: <input type="text" id="total0" value="0"><br> Total produto2: <input type="text" id="total1"…
-
0
votes4
answers8000
viewsA: Create floating button that accompanies a table scroll
#voltarAoTopo { float:right; z-index:0; position:fixed; bottom:20px; right:15px; } And in that detail window, put z-index:9; You tried so?
-
0
votes4
answers8000
viewsA: Create floating button that accompanies a table scroll
Hello, Set the z-index: considering 9 as above all, and 0 below all. So, z-index:0 or z-index:1
-
0
votes1
answer76
viewsQ: PHP+JSON Webservice - Reading array
I’d like to play a JSON with PHP, where: {"data": { "nome1":João, "status":["Ativo"] } } $retorno = json_decode($jsonRet); $nome1 = $retorno->data->nome1; $status =…
-
0
votes2
answers526
viewsQ: Webservice PHP+JSON - How to read return
Hello! Guys, I’d like to understand how to read the return, with the following structure:: $ws = array( 'categoria' => array( array( 'cat1' => array( 'dado1' => $dado1, 'dado2'=>$dado2…
-
0
votes0
answers42
viewsQ: Reload Div Setinterval only when new record
Hello! I would like to understand how to reload a div only when a new record is performed in the database. The triggering of this action would be like in a setInterval, but not every xxxseconds, but…
-
0
votes1
answer49
viewsA: Problems with html bootstrap div
Hello, Utilize position:absolute;height:100%;z-index:999999999;
-
1
votes3
answers56
viewsA: Problem with div positioning - CSS
Hello, Start by restructuring: *Place the text and button inside the same grouping: <style> .list_box{ display:inline-block; width:100%; } .list_box li{ display:inline-block; } .list_box…
-
1
votes2
answers702
viewsA: Fixed menu problem with bootstrap
In the navbar class if you want it to always be visible in the top, add position:fixed; top:0; left:0; at the .navbar. : .navbar { border-bottom: 2px solid #FFF; font-size: 15pt; color: #FFF;…