Posts by Nosredna • 117 points
20 posts
-
1
votes2
answers97
viewsQ: Software with local and remote BD recording
I have a question about the possibility of doing a type of program and what means to use. Just for the record, I’m not asking for "how to do the programming," but an opinion from more experienced…
-
-3
votes2
answers74
views -
1
votes1
answer316
viewsQ: Table row with link
How do I get links in each row of my table, for example, I want it to be similar to the emails of Gmail, Hotmail etc., which has several lines and when you click on a specific one, open the full…
-
0
votes1
answer43
viewsQ: Calculate via JS by Span id
In the code below, the two are 'fed' by a select via JS, i.e., I choose the option on select and it fills me these two fields (numerical, Float). I have another field input which is 'powered' by…
javascriptasked Nosredna 117 -
0
votes2
answers1083
viewsQ: Calling JS function by Select
I have a function in JS and I intend to run it when changing the select, I call it so: $("#table1 .td_select select").on("click select", function(){ calcSub($(this).closest("tr")); calcTotal(); });…
-
2
votes1
answer70
viewsQ: Mark Checklist container and run JS
I’m getting a lot of Javascript, I’ve tried several ways but I’m not getting it... I have a structure like this: I want that when the first checkbox is checked, it multiplies the first price with…
-
0
votes2
answers86
viewsA: Intermittent results...has JOIN limit in PHP?
Well...I was able to find the problem. Some tables my primary keys could be blank, theoretically. The problem is that the value was NULL It was a problem. I decided to change these empty values to a…
-
-1
votes2
answers86
viewsQ: Intermittent results...has JOIN limit in PHP?
I choose the car maker, the model, engine and year and perform the consultation so: $query = "SELECT b.montadora, m.modelo, n.motor, a.ano, d.descricao, c.combustivel, f.f_cabine, g.local_ar_cabine,…
-
1
votes1
answer81
viewsQ: How to upload more than one AJAX - PHP id?
In the case below I am sending the ID data: id_motor... And if I want to send another ID together, like the id_motor and the id_model, as I would? $(function(){ $('#id_motor').change(function(){ if(…
-
0
votes1
answer134
viewsQ: PHP: Retrieve ID from a Simplified URL
I have a URL like this: http://localhost/oficina2/home.php? id=12345 I’m simplifying for: http://localhost/oficina2/? 12345 How do I recover this id (12345) on any page? I tried it like this: $url =…
-
0
votes1
answer62
views -
0
votes1
answer62
views -
0
votes1
answer54
viewsA: Dynamic input (JS) error passed to SQL by PHP
I got it this way: <?php $sem_linha = str_replace('linha', '', $dados['hidden1']); //tiro a palavra "linha" do valor da input hidden', assim ao invés de linha1, linha2, linhaN... -> fica: 1,…
-
0
votes1
answer54
viewsQ: Dynamic input (JS) error passed to SQL by PHP
I have the code below referring to the link Add or Remove Inputs with JS function calcula(){ var total = 0; $("span[id^=linha]:visible").each(function(){ var val_unit = parseFloat($(".class_unit…
-
2
votes1
answer65
viewsQ: Arrays with keys that vary numerically
In the PHP I’m declaring my variable like this: $id_produto = $dados["id_produto".$input.""]; Where $inc is increment within the loop and the $dados["id_produto".$input.""] should return something…
-
-5
votes1
answer332
viewsQ: How to set decimals in JS?
I’m not getting the right decimal places, where the error is? function calcula() { var total = 0; $("span[id^=linha]:visible").each(function() { var val_unit = parseFloat($(".class_unit input",…
-
0
votes2
answers31
viewsQ: Problems with Variables in JS
I have some inputs that should be self-paced. Here’s how it works: I fill out the input Barcode 1 and JS automatically populates Product Description 1 and Unit Value 1. The problem I’m having is…
-
0
votes2
answers99
viewsQ: Select Textarea Text with Variables on Click
In the case below: Select textarea text by clicking If I want an example1 variable, example2, exampleN. As I declare in jQuery? I can’t do it like this... $(document).on('click',…
-
1
votes1
answer1563
viewsQ: Add or Remove Inputs with JS
have a question?! on the link below: jQuery1.7.2 compatibility issue for jQuery 3.3.1 i have a code that calculates some inputs based on price, quantity, subtotal (price * quantity) and overall…
-
-2
votes1
answer83
viewsQ: jQuery1.7.2 compatibility issue for jQuery 3.3.1
I am layman in JS, but I need an urgent application and I found one that suits me, just make the adaptations. I have the following code below: function id( el ){ //return document.getElementById( el…