Posts by AmandaRJ • 382 points
34 posts
-
0
votes1
answer39
viewsA: Pass Select sql to the default used in Laravel
Solved by adding the lines below on config database.php of Laravel 6: 'mysql' => [ 'strict' => true,// acrescentado as linhas abaixo 'modes' => [ 'STRICT_TRANS_TABLES', 'NO_ZERO_IN_DATE',…
-
0
votes1
answer39
viewsQ: Pass Select sql to the default used in Laravel
In my phpMyAdmin, I use the SQL below: select categorias.id as categoria_id, nome as categoria_nome, count(*) as Quantidade from `livros` inner join `categorias` on `livros`.`categoria_id` =…
-
-2
votes1
answer60
viewsQ: display list of dependents per user in Laravel 6
I have my main "home" page with route that is displayed after login. So this one "home.blade.php" displays a page with the logged in user data. I created a "dependent" table, I made the relationship…
-
0
votes3
answers1368
viewsQ: Get Laravel login user address
I have a project on Laravel 6 and I can get the username logged in: {{ Auth::user()->nome }} It turns out that this user’s address is in another Onetoone table where 1 user has 1 address. How do…
-
1
votes1
answer947
viewsQ: Post in a div
Good morning. I have a div that when clicked, opens a page. So far so good and is working. Now how do I make so that when the user hovers over that DIV, appear a Popover with the message "To edit…
-
-3
votes1
answer41
viewsQ: Display an online java object list
Good night. I have a java vector with fruit names I wanted to display the fruits online : banana, apple, grape presenting on a table. How would you do this using javascript ? ${frutas[0].nome…
javascriptasked AmandaRJ 382 -
1
votes1
answer756
viewsQ: How to load an image into an img input type input by receiving the url of another input
Good night. I have a form that has an input that receives a url by ajax. How can I take this url and fill in another input to view the image ? JS (here I pass the id of the input that will receive…
-
1
votes3
answers314
viewsQ: Help how to take the last word of a string and add it to the top using java
I have a full name: Jais Pereira Guedes Godofredo The example below, I get the last word, but how to print with this result: Godofredo, Jais Pereira Guedes public class Aula1{ /** * @param args the…
-
0
votes3
answers293
viewsQ: Change the color of a button by comparing 2 attributes of a list with Jquery
I need to change the color of a button on a product list. However, I receive in a variable another list with the only logged-in user product id. Structure I receive : [ 2, 7, 18, 21] // are the id…
-
-3
votes1
answer1201
viewsQ: update list field without refresh ajax
I have the following jsp list where I just want to increment the value of the quantity field without refreshing the page. The way I did, it works, but updates the page. So I searched, it would have…
-
-1
votes1
answer94
viewsQ: ajax counter and save in bank
I have a list in a table and put a column to display the amount of clicks when clicked. But how could I trouble the value that comes from the bank and save. Would it be by ajax? If yes, how would…
-
0
votes1
answer257
viewsQ: Assemble a product table as a java jsp showcase
I’m having a hard time presenting a showcase product list using Java and JSP. I can get the data, but I don’t know how to fill this table using the <c:forEach> My table would have this…
-
0
votes1
answer152
viewsQ: Run javascript function if condition is true
Good night. I have a button that when clicked, calls the function below: $('#sa-success').click(function () { swal({ title: 'Good job!', text: 'Lorem ipsum dolor sit amet, consectetur adipiscing…
javascriptasked AmandaRJ 382 -
1
votes2
answers917
viewsQ: Take the last word of a string and put it at the beginning with jQuery
I have the phrase: "Tomorrow it will rain". I want to take the last word and leave it like this: "rain, tomorrow will go". I’m doing it this way: var frase = 'Amanhã vai chover'; var palavra =…
-
1
votes1
answer568
viewsQ: Fill out a form with Json data in jquery
Good night. I have a url that gets this json structure: { "kind": "books#volumes", "totalItems": 1, "items": [ { "kind": "books#volume", "id": "AKs0vgAACAAJ", "etag": "4X6Xl91J0mQ", "selfLink":…
-
0
votes3
answers1211
viewsQ: Remove last character from a string when the character is a blank
Good afternoon. I am programming in java and want to get the initials of a name, in case: "Jonas Barros Santos" Must appear : JS The code I use does this, but if the person puts the name with space…
-
0
votes1
answer794
viewsQ: Submit form when loading the page
I have a form and wanted that when being loaded the page, that form was submitted. I’m using the code below, but it’s in an infinite loop. <form name="teste" action="inicial" method="post">…
-
0
votes1
answer488
viewsQ: Change the action of a form as per condition
I have a form that does an update. But I wanted to put a checkbox input that when checked, changed the action of my form to delete.
javascriptasked AmandaRJ 382 -
1
votes2
answers1793
viewsQ: Only get the first name, after space using Java
Good afternoon. I got the following String: "Carlos Ferreira da Silva" I wanted to take just the first name and ignore rest after the "space". Using regular expressions, how could I do that?…
-
1
votes1
answer443
viewsQ: Take select values and add their data
<div class="row"> <div class="form-group col-md-3"> <label for="servico">Serviço</label> <select> <option value="200">Escapamento / Montagem R$ 100</option>…
-
2
votes3
answers349
viewsQ: I need to clone the contents of a div and put in the form of my modal
Good afternoon, everyone. Once again I come to you about a problem I have. I need to use the syntax below in a modal. $("#divConsulta").clone().appendTo($("#formFruta")); In the row below when…
-
3
votes1
answer788
viewsQ: Accuracy error in account with Bigdecimal
I have the class below, which shows a different value when I use the calculator. I researched about BigDecimal, but I must be missing something when it comes to presenting the result. What I have to…
-
1
votes0
answers37
viewsQ: Help with two select, fill values correctly
Good afternoon. I need to put in my form two select, and the second has to present values according to the choice of the first. In the example that I was told, I adapted according to the code below,…
-
1
votes1
answer351
viewsQ: Take calculated values of two inputs and subtract for another input
I have a form that has a field filled out from the bank. In this form, I have to do 2 percentage accounts, take these two sum values and finally take the start value and subtract from the sum of…
-
1
votes2
answers31
viewsQ: Receive a date array other than the one chosen
I have a form, where I need to choose the dates, which in case would be multiple. I am using this plugin/Jquery component: http://multidatespickr.sourceforge.net/ My problem is that I don’t want to…
-
1
votes1
answer235
viewsQ: Capture a state name (Uf) and an image
Good night to you all. I have an image of Brazil with its states: How do I, if I click on the image of the state of São Paulo, fill this name in a text field. <input type="text" name="uf" id="uf"…
-
1
votes1
answer159
viewsQ: Mask for hour 24:00
Good evening, everyone. I would like your help for a problem. I have a field in my form to receive time. But what I have found few validate. Most do so: When you type 24:00 it turns to 00:00 ... but…
-
1
votes1
answer136
viewsQ: Doubt about using checked="checked" in a jquery function
I have a form and wanted that when the page was loaded, if my checkbox is set, disable the "disable" form property. In the code example below, I put checked="checked" but only works if I click to…
-
0
votes2
answers752
viewsQ: Fill select Multiple with data stored in the database
Good afternoon to all. I need some guidance from you regarding select Multiple. I have the select below: <select class="form-control" id="dias_semana" multiple name="diasDaSemana[]" required>…
-
1
votes1
answer517
viewsQ: Installments with date, skipping month of February
Good afternoon. I’m studying a little JS and I found something interesting that future I think about using. However I realized that the JS below that generates installments with due dates, skips the…
-
1
votes2
answers402
viewsQ: Calculate select field values from a form
Good afternoon to all. I need some help from you. I have the following select Multiple: <select id="precoFruta" multiple name="valores"> <option value="1.5">Macã - R$1,20</option>…
-
0
votes2
answers507
viewsA: Help in select to create new input text
Good morning to all! I did it this way below. It’s working, I wanted to put a button to remove the line (to remove the two inputs) and as I realized, when I click on the link "more" it adds the two…
javascriptanswered AmandaRJ 382 -
1
votes2
answers507
viewsQ: Help in select to create new input text
Good afternoon, I have the following question: I have a select field with about 100 options. In this current select, I choose an option and this chosen option is filled in a new input text... I…
javascriptasked AmandaRJ 382 -
3
votes1
answer297
viewsQ: I need to fill 2 fields using select
I have a select with the following values in option: <select id="frutas" name="frutas" > <option value="">Selecione...</option> <option value="Maçã - 10.00"> Maçã…