Posts by Marcia Pereira Reis • 451 points
25 posts
-
3
votes3
answers314
viewsA: Help how to take the last word of a string and add it to the top using java
Hi @Amandarj. I’ve had this doubt, see if it helps you this, I solved it this way: * * @author marcia */ public class Aula1{ /** * @param args the command line arguments */ public static void…
-
0
votes3
answers293
viewsA: Change the color of a button by comparing 2 attributes of a list with Jquery
$(document).ready(function(){ //valores que você recebe var listaProdutos = [ 2, 7, 18, 21]; $("#cod").each(function(){ …
jqueryanswered Marcia Pereira Reis 451 -
1
votes3
answers2135
viewsQ: Put the options of an input select in a variable
Good night. It is possible in a select Multiple I save the chosen options in a variable and keep the chosen options? Example: <form class="form-inline"> <select id="opcoes" multiple…
-
1
votes1
answer887
viewsQ: pass a variable to a url
$(document).ready(function () { var codigo = "abC"; }); <a class="btn btn-default" href="/meuApp/pagina?codigo=" + codigo + >Cancelar</a> Good afternoon. I’m breaking my head and I can’t…
javascriptasked Marcia Pereira Reis 451 -
2
votes2
answers3476
viewsQ: Get the first letter of the last name and last name?
I am using the code below to get the first letter of the name and surname. It’s working, but I see the following problem for a longer name: Example: Carlos Eduardo Martins Dutra do Rego public…
javaasked Marcia Pereira Reis 451 -
0
votes0
answers33
viewsQ: Clone + autocomplete help
Good night. I’m using this example of autocomplete : https://jqueryui.com/autocomplete/ It works exactly as I need it... but the problem occurs when I clone this element. Then the autocomplete…
-
0
votes1
answer102
viewsA: Onchange function in Javascript, only works with TAB in Bootstrap
Good evening, excuse me, I removed the maskMoney library: https://plugins.jquery.com/maskMoney/ And now it works, I will only study a solution to prevent the user to put "comma" instead of "point".…
-
0
votes1
answer102
viewsQ: Onchange function in Javascript, only works with TAB in Bootstrap
Good night. I have a bootstrap form with modal that when entering the values, the calculation is only performed after giving a TAB to change field. But doing the test here, Joins with TAB and…
-
2
votes1
answer588
viewsQ: Clear form field, if autocomplete is null
I am using the code for autocomplete below. I type the initials of a fruit and my select returns the names of the fruits that match those initials. Selecting one of them, I take the id and play in…
-
1
votes1
answer29
viewsQ: Is it possible to make an appendTo for another document?
Good morning. It is possible to clone a div from a webpage to another webpage? Example: Access my system and go to the page "list". In this list page, I have a div with id="testConteud". On this…
-
2
votes4
answers3391
viewsQ: Perform Jquery percentage calculation
Good afternoon, everyone. I have a field with readonly value. This field already filled with data from my bank. I have another field, where I will enter the percentage value. How do I get the result…
-
1
votes1
answer197
viewsQ: Java method show dates in a loop
Good evening, I have a method where I receive the amount of installments and start date. I want to add 1 month to this initial date in loop and I’m confused, giving a very different value: public…
javaasked Marcia Pereira Reis 451 -
0
votes3
answers2061
viewsA: Exit button with message
Follows the solution: <a href="<c:url value="/logout"/>" class="btn btn-primary" role="button">Sim</a> Thank you so much to everyone who helped me!…
-
1
votes3
answers2061
viewsQ: Exit button with message
I’m trying to use the bootstrap 3 along with the VRaptor 3 and I have a problem on the menu. I happen to have in this menu the option "exit" and I’m lost. I need that when the user click on "exit",…
-
3
votes2
answers143
viewsQ: configure virtual host in apache2
I am having difficulty configuring my virtual host in Apache2 with Debian. I created the folder: mkdir /var/www/site/public_html inside that directory I created a file index.html. After that I set…
-
0
votes2
answers333
viewsQ: Making multiple SQL inserts, multiple Inserts
Good evening to all, once again I live my Alans heel with the blessed sql... I want to insert data in two tables... client table and address. I take the sql below, fill the variables and run the sql…
-
1
votes2
answers1282
viewsA: Angular.js function to calculate age
Solved, using a direct calculation in the query. Therefore, I didn’t even need to create any Javascript function... it was fast and practical! SELECT DATE_FORMAT(NOW(),'%Y') -…
-
3
votes2
answers1282
viewsQ: Angular.js function to calculate age
Good evening, everyone. In my comic book, I store customers' date of birth. I have a list that presents: name | Cpf | age? How could I take the data stored in the bd and using Angular.js or php…
-
1
votes1
answer786
viewsA: I need to change the onclick button to angular.js
Solution: $scope.detalhes = function (id) { $('#myModal').modal('show'); $("#conteudoModal").load('verProduto.php?id=' + id); };
-
0
votes1
answer786
viewsQ: I need to change the onclick button to angular.js
Good evening. I’m using Bootstrap paging with Angular.js . I can get the database data and list it, it was beautiful, etc... the way I needed it. However, I need to open a modal window and it worked…
-
2
votes1
answer1972
viewsQ: Perform mysql query of two tables via php
Good afternoon guys. I have a problem that I don’t know how to solve anymore. I have the following mysql query in php: mysql_select_db("banco", $conexao); $resultado = mysql_query("SELECT * FROM…
-
1
votes1
answer2000
viewsA: Fill modal with PHP Bd data
Solved: function detalhesProduto(id) { $('#myModal').modal('show'); $("#conteudoModal").load('detalhaProduto.php?id=' + id); }
-
1
votes1
answer2000
viewsQ: Fill modal with PHP Bd data
I’m having trouble filling a modal with data coming from an sql query. I have a list of all the products. In this list I have a button that when clicked should open a modal with the product details.…
-
2
votes2
answers931
viewsQ: How to put a "loading" image after validation and Submit?
I have the following situation, a form with Jquery validation working. However, as I am sending some attachments in the form via email, I wanted to present an image for the user to wait. Then the…
-
1
votes1
answer189
viewsQ: Create input fields according to the size of an array
Good evening, I’m receiving via JSON a List with the structure below: anexo: [{cod: 5, nome: "anexo1.pdf"}, {cod: 6, nome: "texto.txt"}] And I use the function below: $.getJSON(url + cod, function…