Posts by Thiago Reis • 50 points
6 posts
-
1
votes1
answer574
viewsA: Ionic 3 Http request does not add header Authorization
The two requests is the default behavior of browsers when using CORS. The browser automatically makes a first request using the OPTIONS method to determine whether the request is safe to send, this…
-
1
votes2
answers1197
viewsA: Angular 404 (Not Found)
It has already happened to me that the ng command serves to delete the files generated by ng build. Do the following, run ng build and copy the files to Xampp before running ng serves again. To…
angularanswered Thiago Reis 50 -
1
votes2
answers430
viewsA: Allow Submit to appear only when CERTAIN fields are filled in PHP
The first step is to check the visible fields on the screen. Using Jquery you can check whether the item is visible as follows: if( $('#tipoproblemas').is(':visible') ) { // faça alguma coisa } and…
-
0
votes2
answers3707
viewsA: How to fill a select with Eloquent?
You will have to treat the array passed to select to form a new associative array. The key being id and the name the value. $tipos = Tipo::pluck('nome', 'id'); $tipo_associativo = []; foreach($tipos…
-
-3
votes3
answers1161
viewsA: How to send an object array type variable via AJAX?
The first step is to define the type of request in your ajax call: $.ajax({ url:'retira_falsos_amigos.php', type: "post", // Defina aqui o tipo da requisição data: { amigos: pessoas.amigos },…
-
1
votes5
answers6427
viewsA: How do I list the files in a directory and subdirectories that contain specific text on Linux?
Friend, you can use the GREP command EX: grep -ri "texto_da_search" /directory . Here is a link that explains the operation of the grep better:…