Posts by Anderson Santos • 138 points
10 posts
-
1
votes1
answer464
viewsQ: Problem with Laravel + Adminlte application
My problem is the following, the application I am developing has a customer listing, which uses the following code for display: <section class="content"> <div class="row"> <div…
-
0
votes2
answers52
viewsA: Invalid argument error in foreach
It is always valid to check the variable that goes to foreach, we always need to maintain the integrity of the data, ensuring that even if you receive nothing, always agree with the structure of the…
phpanswered Anderson Santos 138 -
4
votes2
answers116
viewsA: Invalid argument foreach() return empty message
You can check the array before going to the foreach if( is_array($arrayReturn['qsa']) && count($arrayReturn['qsa']) > 0 ) { // Aqui continua o seu foreach }else{ echo '<tr><td…
-
1
votes1
answer521
viewsA: Change TD background color by clicking Radiobox Checked and changing Color again when Quitting Radiobox
The ideal is that you do it with class :D In CSS add: .hr_consulta, .hr_consulta .td_data_consulta { background: #FFFFFF; } .hr_consulta.selecionado, .hr_consulta.selecionado .td_data_consulta {…
jqueryanswered Anderson Santos 138 -
0
votes2
answers152
viewsA: How to get the searched item with autocomplete?
Tries to replace: $('#buscarProduto').val(ui.item.value); By the ID of the respective div and the . text function() $('#divParaExibir').text(ui.item.value);…
-
0
votes1
answer78
viewsA: javascript takes variable in php form wrong.
In HTML, replace: <input type="submit" value="Apagar"> For <button type="button" class="apagar" value="<?=$nometreino?>">Apagar<button> In Javascript, replace: // Quando o…
-
0
votes1
answer67
viewsA: Problem with Responsive Image
Work background-image only on img tag parent. In the case of the img tag, leave the image path in the src attribute normally, and in CSS, remove the opacity completely, so the img tag takes care of…
css3answered Anderson Santos 138 -
-1
votes2
answers865
viewsA: Error when receiving php array in ajax
In $.ajax(); calls from jQuery, when you receive a json you can specify the dataType parameter: "json". The date received by Success: Function(date){} will be converted to object, if the answer is…
-
1
votes2
answers463
viewsA: How to open external urls with php functions
Your extension directory in php.ini might be referencing a wrong relative path, I’ve had a problem with that. Try to check if the "extension_dir" directive is referencing the right location. Try…
phpanswered Anderson Santos 138 -
0
votes4
answers381
viewsA: Fill value in combobox when you click checkbox
In this way, your example is working perfectly. Particularly I avoid using . attr() in such cases. OBS.: . val() in addition to entering values, can also be used to select options. function IEcli()…