Posts by Guilherme Rigotti • 1,087 points
78 posts
-
0
votes2
answers664
viewsA: Onsubmit is not working
If I understand what you want to do, what you need is your method checkFormModal() return true or false, and in the case of false the page is not sent. If that’s what you need to do is something…
-
0
votes1
answer633
viewsA: Choose the language of the player in HTML5
I believe that it is only possible to make this manipulation through JS. <script type="text/javascript"> video = document.getElementsByTagName("video")[0]; for (i=0; i <…
-
0
votes2
answers105
viewsA: How to make a console.log on the map?
Utilize {} in his arrow function to set the scope and put the console.log inside it. Example { content.map( content => { console.log(content); return content.id }) } According to the…
angular-6answered Guilherme Rigotti 1,087 -
5
votes2
answers3118
viewsA: How to format date with the name of the month in Portuguese and capitalized in Moment.js?
You can do something like this to make the first letter of the month uppercase. let data = moment(...).format("MMM") data = data[0].toUpperCase() + data.substr(1) But there are good reasons not to…
-
0
votes1
answer24
viewsA: Listing domains from cookies
Your question is vague, you didn’t even try to get us to help you based on something? In any case, maybe this will help you catch the cookies page. function obter_cookies() { var cookies = { }; if…
-
2
votes1
answer3118
viewsA: Black screen in android emulator
I had the same problem. I think the problem is that Android Studio generates this app-debug.apk. For some reason in this directory android/app/build/output/apk But this directory has child…
-
0
votes2
answers47
viewsA: Avoid PDO duplication in image upload
You can do something similar to this. As you did not specify exactly what you need I used as an example the lesson column $aula= "exemplo"; $stmt = $pdo->prepare("SELECT * FROM…
-
0
votes1
answer51
viewsA: Create new tab when changing ID
I ended up being able to do what I needed in the following way. $ultimo_header = ''; for ($i=0; $i < count($area_avaliar); $i++) { if ($i == 0 || $area_avaliar[$i]->cod_atleta_area_avaliar !=…
-
0
votes1
answer51
viewsQ: Create new tab when changing ID
Good afternoon, I’m generating a report on PDF and I need to generate a new page when changing user code Is generating so . At the moment it is only inserting the line of the items and ignoring the…
-
0
votes1
answer50
viewsQ: Pick up the start day and the end day of the specified week
Good afternoon, I’m returning from the database the number of the week in the year. ["data_hora"]=> string(16) "19/11/2018 15:26" ["num_semana"]=> string(2) "47" Where num_week is the number…
-
0
votes1
answer32
viewsA: Sort array in PHP by key value (With fields with integer values)
I think this will solve your problem. function ordenarPorSellerID($a, $b) { return (($a['seller_id'] != $b['seller_id']) ? (($a['seller_id'] < $b['seller_id']) ? -1 : 1) : 0); }…
-
-1
votes1
answer49
viewsQ: Maximum occurrences of an item
I need to go through the data and find out the maximum number of occurrences of an item. I have the following structure array(5) { [0]=> object(stdClass)#26 (6) { ["num_dia"] => string(1) "5"…
-
1
votes1
answer61
viewsA: DIV lose alignment if it is with a number of different lines
Add the vertical-align:top in your CSS. .div-project { background-color: #1d68a7; display: inline-block; border-radius: 12px; padding: 10px; text-align: left!important; margin-bottom: 5px; width:…
-
3
votes1
answer136
viewsA: Currency type formatting error in jquery
You can use another plugin specifically for coin masks. Maskmoney Your code would look like this. function AtualizarMascaras() { // Mascaras $("#ValorPorcentagemField").maskMoney({prefix:'R$ ',…
jqueryanswered Guilherme Rigotti 1,087 -
7
votes0
answers509
viewsQ: Generate dynamic table with TCPDF
Good afternoon, I’m using the TCPDF to generate an evaluation report, and I need this report to be divided into weeks that the user has activity. At the moment the report is thus What I need is to…
-
0
votes1
answer64
viewsQ: Browse the PHP Array
I have the following call for a model` $dados = $this->atleta_model->get_atividade_semanal($__cod); However it is returning me an object that I cannot iterate, I need to go through it to put…
-
1
votes1
answer41
viewsA: Change link from two links whose id are equal with js
document.getElementById() supports only name at a time and returns only a single Node, not an array of nodes. You have several different options: You can implement your own function that takes…
-
1
votes1
answer50
viewsA: What Ips and Ports do I need to have cleared to work with Composer and Git?
About the Git you can check this link from Github that he will inform you about About Github’s IP Addresses The Composer I believe to use the doors by default 80, 443…
-
0
votes3
answers61
viewsA: Doubt with Localstorage -
You can use the function setItem from localStorage to store its counter variable, it has the following syntax localStorage.setItem(keyName, keyValue); You can add the following to your code to save…
-
1
votes1
answer124
viewsA: Is it possible to make Polyfill for Arrow Function and Template String?
I recommend you do not resort to Polyfills in this case, use the Babel, for he is not only one transpilador ES6 (ES2015). The ECMA standards committee has agreed to release annual updates to the…
javascriptanswered Guilherme Rigotti 1,087 -
1
votes1
answer51
viewsA: Validation javascript field with Split
The split function will create an array. After, you can use the length function to get the size of your arr variable. var str = $("#FormaCalculosVencimentos").val(); var arr = str.split(",");…
-
0
votes1
answer82
viewsA: move variable to jquery function
The swal_confirm is not the correct method to use the SweetAlert, according to the documentation you need to perform a function only if the OK button is clicked as in the example below. Example…
-
1
votes1
answer136
viewsQ: SELECT to fill in a field
Good afternoon, I have a table called Pessoa and another Matricula, I need to make a query that returns the fields to me name, license plate and person of them, where name and person are on the…
-
1
votes1
answer39
viewsQ: Position elements on the screen
How to position elements without breaking I have a screen with some inputs, am using bootstrap and defining the sizes of the fields, but still they are broken as in the image below. I need them to…
-
0
votes3
answers176
viewsA: Keywords with Jquery
You are using jQuery, could use a plugin like the Taggingjs and with this line you would solve your problem. $('#inputDaTag').tagging();…
-
1
votes2
answers983
viewsQ: Leave Input next to Label
How to align inputs with the label Good afternoon, I have a dynamic form, it is done using Bootstrap and the inputs/Labels is according to the database data, everything is correct, but in the inputs…
-
0
votes1
answer199
viewsQ: Keep data already filled in the form
When bringing the form for the user to fill, I need that, if the data already exists in the database, it brings me the form filled with the possibility of the user "edit", but always creating a new…
-
3
votes1
answer207
viewsQ: Format data before saving to the database
I’m using the Laravel to develop a system, but I have a problem with data coming from a form, I need to format a data in the following format (#.##) to perform certain calculations, the problem that…