Posts by Sérginho • 301 points
17 posts
-
0
votes2
answers41
viewsA: input declared not accessible in javascrit and php
You’re a little confused there but let’s go. In your Voce form tag you need to include <form method="POST">...</form> In your function click edit has to take…
-
0
votes1
answer57
viewsA: Error using POST Angularjs
@Eduardobobato I’m not sure what I’m going to tell you now because I’ve never seen it anywhere and the answer is in my head but I don’t think Voce can give a post for a file. json, since json is not…
-
0
votes1
answer34
viewsA: How to recover the amount of elements within a card-group
Try it here: var produtos = $(".card-group .card").length; console.log(produtos);
-
0
votes2
answers1598
viewsA: Send value of a <a> onclick
Your question is a little confusing but I think that’s what you want //HTML <div id="dicaDiv" class="text-center"> <p id="pDica1" style="display: inline;">Dica 1: <span…
-
2
votes2
answers16
viewsA: How to select most used foreign key?
I don’t know if it’s the best way to build select but I think it solves. SELECT idTema FROM nome.tabela GROUP BY idTema ORDER BY count(idTema) DESC LIMIT 1;
-
0
votes1
answer38
viewsA: How to perform query in two tables by doing data combination
If I understand the question correctly you want the user to enter a term in a search field and the system to bring both the codes and descriptions that match the search. Assuming the link between…
-
4
votes1
answer1488
viewsA: Image cannot be loaded in the application
You must place the image straight from the Assets folder, if I remember correctly. Try it this way: <img src="/assets/img/logomarcaSaf.png" class="logo" (click)="infor()"> or so: <img…
-
2
votes1
answer152
viewsA: Sending of Friendship
You need to pass the connection link to the database to the mysql error function $conf = mysqli_query($con, $ins) or die(mysqli_error($con));
-
0
votes2
answers809
viewsA: How to use 2 Submit separately in html?
You need to close the first </form>because the way this code of yours is all one form, and when you click on any Ubmit all data is submitted. When you click on the confirmation of the 1st form…
-
0
votes2
answers85
viewsA: Get date-ref from different buttons
1º Voce cannot (at least should not) have elements with the same id. 2º You have to manipulate the button or linkthat was clicked and then call the modal. A way to do it would be like this:…
-
1
votes2
answers5148
viewsA: Removing . append() jQuery
Ever tried to put an id on <tr> that is inside the .append and when removing search for this id ? $j('.item-custom').append('<tr id="trAppend"><td> Meu codigo…
-
0
votes3
answers247
viewsA: Error when passing Ajax parameters to function in PHP class
Put this at the beginning of your file function() $diretorio = $_GET["diretorio"]; $tamanho = $_GET["tam"]; In the place that this: $diretorio = $_POST["dirimg"]; $tamanho = $_POST["tam"]; In ajax…
-
0
votes2
answers613
viewsA: Store an array of select in a js variable
I’m not sure what you want, but see if you can help: var array = new Array(); $('select').each(function(index, el) { array.push($(el).val()); }); console.log(array); If you want to take only the…
-
0
votes1
answer438
viewsA: Select with php javascript ajax json
Try using for ... in: for (j in JSON) { $('#idDiciplina').append( "<option value="+ JSON[j].idDisciplina +">" + JSON[j].Nome + "</option>" ); } I can’t remember if you need to use var…
-
1
votes1
answer317
viewsA: Populate input with array
Try to take the $ out of front of json_encode($urls) function on the line: echo '<input name="imagens_home" value="'.$json_encode($urls).'" style="width:300px"/>';…
-
0
votes2
answers1816
viewsA: Difference between dates in javascript months
You need to instantiate dates in javascript pattern. var DateDiff = { inMonths: function(d1, d2) { d1 = new Date(d1); d2 = new Date(d2); var d1Y = d1.getFullYear(); var d2Y = d2.getFullYear(); var…
-
1
votes4
answers5215
viewsA: Error in v7 appcompat in v21 themes
I had the same problem, I followed Lubni’s footsteps Right click on the support library; Click on Properties; On the left click on "Android"; Select on the right side "Android 5.0 - API 21" and…