Posts by Neuber Oliveira • 2,485 points
106 posts
-
3
votes1
answer87
viewsA: How to concatenate a php variable value in this case
Just use the $value['id'] the same way you did with holidays, but at the point where you need to Simple as that <td><?= $value['feriasrestantes'] ?></td> <td><a…
-
-1
votes1
answer93
viewsA: How to add logo to a boostrap login box?
Basically just insert the IMG tag where you want and format accordingly. In this example is the image just below the text Faça o seu Login <script…
-
0
votes2
answers182
viewsA: Alert does not appear
Essentially Voce is making an infinite loop at the end of valorAPagar Voce calls again valorAPagar that when it’s over it calls again valorAPagar, and so on. Another problem was that when it came…
-
1
votes1
answer399
viewsA: How to read a Json file in php
First of all your json has no array. Most likely it will arrive as string, there and only use the json_decode $json =…
-
0
votes2
answers1144
viewsA: Change the color of menu items when hovering the mouse
My opinion the best way is to style the A tag and not the LI tag, so Oce gets the effect he needs in a simple way. /* Formataçao do menu */ nav#menu { display: block; } nav#menu h1 { display: none;…
-
0
votes1
answer60
viewsA: javascript - Create multiple lines with pre-programmed add buttons
What happens is that when Voce adds the new line with the buttons + and -, your code does not know about this new element, so it works only on the first line that is already in HTML. The idea would…
javascriptanswered Neuber Oliveira 2,485 -
0
votes1
answer25
viewsA: JS content for time
Only with JS is not a good way to do this, the ideal would be a backend that brings render only the content of the day. But for you to understand a simplistic way it could be like this…
javascriptanswered Neuber Oliveira 2,485 -
2
votes4
answers235
viewsA: Setinterval calling function only once?
Actually the function is correct, I added a console.log inside setInterval, you can see that the log appears several times. The problem is that Voce is simply adding a class in the element, the css…
javascriptanswered Neuber Oliveira 2,485 -
0
votes1
answer210
viewsA: Return a function to be executed - Typescript
You can use the pattern .then() .catch() of the Promises Encapsulate the name that comes in the parameter and returns a new promisse, then you don’t even need the callbacks. It’s a little fuzzy on…
-
3
votes2
answers422
viewsA: Omit passing of parameter
Why Voce is setting a default value for the second parameter. body:Object={} The variable body and kind Object with the default value defined as {}(an empty object) To make it mandatory simply…
typescriptanswered Neuber Oliveira 2,485 -
1
votes2
answers16
viewsA: I click on link and appears the link of my blog + the link that should open alone / Blogger
You need to put the protocol on the link http or https, in your case it would be something like http://www.flymundo.com.br Without the http html interprets as a link relative to the current URL.…
-
0
votes2
answers94
viewsA: how to handle JSON Array in PHP
Your Result is an array of several objects, your need to start in the Results. And the CreditData is also an array, and Addresses is also an array, so you will need more foreachs It would be…
-
0
votes3
answers1001
viewsA: Take an input value without Submit
With a Jquery would be much easier, but with seems not to be using will an alternative solution. The bid is able to identify which radio is selected checked var tipos =…
-
1
votes2
answers150
viewsA: Function in jQuery Ajax does not return Value
Fell for the trick of the async. What happens and what part of ajax takes a little longer to execute, when it comes to your return valor; the request is still being processed. That stretch valor =…
-
0
votes1
answer1055
viewsA: How do I connect my RN app to a local api consuming the data in post?
The localhost will always point to the local machine, in the case of the app localhost will be the device itself, so of the 404, the obviously your server is not running on the device The easiest…
-
0
votes2
answers37
viewsA: How to upload an image, but save it with the name based on customer data?
copy($nome_temporario,"imagens/$cpf"); Being $cpf a variable that you need to declare and set before, then this value can come from wherever you want , bank, prorio form, session etc....…
-
5
votes2
answers94
viewsA: Jquery event in the first input runs on all others
That selector $('.descricao-campo'); applies in its 2 fields. When Voce does this in its function descricao.addClass('descricao-fixa'); what happens and that Voce is manipulating all the elements…
-
2
votes1
answer97
viewsA: Capture Resource route id Checkbox with extra parameter
You also need to specify the parameter for the id at the end Route::resource('{processo_id}/andamentos/{id}', 'AndamentosController'); there in the show metodo will probably have something like this…
-
2
votes2
answers80
viewsA: Converting PHP Data to pt_br format
In fact it is quite simple, only use the method format() class Datetime date_default_timezone_set('America/Sao_Paulo'); $data_ult_aces = $row_ult_aces['data_acesso']; $ob_data_atual = new…
-
1
votes3
answers48
viewsA: Email sending problem like Ajax
Put the Prevent defaut at the end and add a return false just to make sure $("#formNewsLetter").submit(function(event){ var data = $("#formNewsLetter").serialize(); $.ajax({ url:…
-
1
votes3
answers619
viewsA: Is it possible to join 2 arrays where the indexes are equal in PHP?
Assuming your google array is in a variable call $resultGoogle it would be something like that: $itemAlvo = $resultGoogle['results'][0]['address_components']; $itemAlvo[] = array(…
-
1
votes1
answer98
viewsA: Get INT as INT and not as string - Codeigniter - Ajax
Can you solve with JSON_NUMERIC_CHECK, an option of json_encode which was added in PHP 5.3.3 Problem and that this will transform into int all the numbers that it achieves, for example your codigo…
-
1
votes1
answer92
viewsA: Problems when trying to return the api data be in a class
What you can do is use one Promise(), so Voce gets to know when you finish the request and changes your state wherever you are. import React, { Component } from 'react'; import axios from 'axios';…
react-nativeanswered Neuber Oliveira 2,485 -
2
votes1
answer757
viewsA: Compile app for Ios made in React in windows environment
You can do this without problems, but I suggest you try everything on an iphone or on your mac simulator before, because there are always some little details that don’t work or work a little…
-
-1
votes1
answer38
viewsA: Posting of an app
You will use the name that is in your Google account, if you join the app program with your personal account probably the part where it shows the "owner" of the app will be with your name for…
-
2
votes1
answer401
viewsA: Clear field file when you no longer have images
Just pass an empty value that solves $('#files').val(null); var count=0; function handleFileSelect(evt) { var $fileUpload = $("input#files[type='file']");…
jqueryanswered Neuber Oliveira 2,485 -
3
votes2
answers103
viewsA: Manipulating array values in PHP
This error means that you are trying to iterate on an element that is not an array. First Voce needs to know/ensure that item valir is an array $item = $_SESSION['item']; $total = 0;…
-
0
votes2
answers648
viewsA: Error Including Image in App
Summarizing the path to the image is wrong. In question Voce says the name of the image is image.png but in the log this logoimg.png so there’s already something wrong there. In React images…
-
0
votes2
answers292
viewsA: Tools for Prototype Mobile App
The ones I know are: Adobe XD (Experience Design) Marvel Apps Sketch…
-
0
votes3
answers1184
viewsA: javascript numeral validation
If it is only valid if it is a valid number, you can do so too, similar to what you did. Accepts so much int how much float, remembering that float will only work with . guy 10.28 to accept , is…
-
0
votes3
answers990
viewsA: Show data with Angularjs according to an input type="select"
So it works, I believe that is not the 100% correct solution, I do not know if a JSON.parse() there is the best idea, but Oce can already understand better how works the Angularjs. var app =…
-
2
votes2
answers63
viewsA: function to use query data
It is the old problem of asynchronous javascript. Let’s assume that the whole process of connection takes about 2 seconds. When Voce calls the function sql(query) the block success will only be…
-
0
votes2
answers252
viewsA: Jquery Table Selector with bootstrap
I usually go to the parent() and then give a find() in the element that needs. $(function(){ $(".input-group input").click(function(){ $(this).select();…
-
3
votes1
answer1363
viewsA: send form without refreshing page
I believe this will work out just the way you need it. jQuery('document').ready(function() { jQuery('#ajax_form').submit(function() { var dados = jQuery(this).serialize(); //aqui voce pega o…
-
3
votes2
answers665
viewsA: When using jQuery append displays the text [Object Object] and does not insert the element
Missed putting the this "inside" of jquery $(this), it was in your click. I just gave a modified to see it working. $('document').ready(function(){ var item = $('<div>NOVO TEXTO</div>');…
-
1
votes2
answers450
viewsA: Error in uploading Wordpress themes
This Voce can configure in your php.ini, You have to increase the upload limit, upload_max_filesize and post_max_size. ; Maximum allowed size for uploaded files. upload_max_filesize = 40M ; Must be…
-
8
votes2
answers923
viewsA: Constructor php
The variables in which you are giving the echo are part of the class, so they need the this to be accessed. Like this, PHP will search for variables first in the scope of the function/method and as…
phpanswered Neuber Oliveira 2,485 -
5
votes1
answer1554
viewsA: Download image link with PHP parentheses
The problem is the space in the name of the photo. To solve you can use a rawurlencode() on the part of the name. copy('http://fatisa.com.br/imoveis/docs/imoveis/'.rawurlencode('terreno (1).jpg'),…
-
1
votes1
answer196
viewsA: PHP Receive data from a CSV via URL
Part of your doubt involves the need to log in before getting the file, since the file in question is password protected. In fact I was always a little intrigued by this too and decided to try to…
-
2
votes1
answer262
viewsA: Publishing app in Apple Store
Check the email associated with the developer account that uploaded the app, sometimes the problem and send an email warning. This app Attempts to access Privacy-sensitive data without a Usage…
-
2
votes2
answers465
viewsA: Go up to Bitbucket an already created branch
Please make sure you have the correct access Rights and the Repository exists. Have you checked if Voce has the correct pawns? You need to add your ssh key in the bitbucket, follow the link of a…
-
4
votes1
answer163
viewsA: Break the line after a certain word with PHP
I believe this solves for you $text = '<a href=".....">página 1</a> <a href=".....">página 2</a> <a href=".....">página 3</a>'; $newtext =…
phpanswered Neuber Oliveira 2,485 -
1
votes2
answers74
viewsA: getDate() from Javascript returning NULL
I simulated your code here and it’s working normal. See if the dial isn’t wrong. (function(){ var data = new Date(); var dia = document.querySelector('.table tbody tr > td'); dia.textContent =…
-
0
votes2
answers2120
viewsA: How to stop a Javascript function that uses setTimeout
Just to give you a little light in the tunnel function startTimer() { let timeValue = $('#clock').text(); timeValue = timeValue.split(":"); let minutes = parseInt(timeValue[0]); let seconds =…
-
1
votes2
answers300
viewsA: Return Javascript before finishing processing
In fact what happens is the following: What Pagseguro is doing "under the table" is an ajax request, ajax is Ncrono, IE, it takes a while to complete, and if javascript were to wait until the…
-
2
votes1
answer2555
viewsA: Difficulties creating update with Laravel 5.1?
Update parameter needs to be an array chave=>valor That’s why you’re making the mistake. The second update will probably work because the $this->request->except('_token'); will return an…
-
2
votes2
answers79
viewsA: Question about array in php
What if Voce simply changes the data structure/array? $arquivos = array( 'arquivo_1' = array( "algo1" => "alguem1", "algo2" => "alguem2" ), 'arquivo_2' = array( "algo1" => "alguem3",…
-
0
votes3
answers1453
viewsA: $. getJSON - How to store responseJSON in a Variable?
I believe this would work function criarDicionario(lang) { this.lang = lang; var dicio; $.getJSON('pt-br.json').done(function(data){ dicio = data.responseJSON; alert(data.responseJSON); /* O Alert…
-
1
votes1
answer79
viewsA: Javascript: Hide button after "subscribe" event
This already resolves, if you are using jquery, it will not be different, instead of removing the boot could only hide Div too, there depends on what you need. <script> function…
-
1
votes2
answers1254
viewsA: How to pass the contents of a.txt file to a JS array?
This resolves unless your.txt file is too chaotic. var numsList = []; $.ajax( 'arquivo.txt', { dataType: 'text', success: function(response){ //response é o conteudo do arquivo.txt var lines =…