Posts by Ari Santos • 361 points
21 posts
-
1
votes1
answer22
viewsA: How to start Cakephp3.x
The best material is the Cakephp manual. This material is quite complete and very explanatory Something that complicates it is that when you go deeper into the Framework much of this documentation…
-
0
votes2
answers58
viewsA: Page reloading while using . click Jquery
Add javascript:void(0) to href <a class="btn-remove-row" href="javascript:void(0)"> <i class="mdi mdi-close-circle font-18 text-danger"></i> </a>…
-
0
votes4
answers3766
viewsA: How to create a clickable div?
function res(){ alert("Vc devia pesquisar mais") } div{ cursor: pointer; } <div onClick="res()"> Click aqui </div>…
-
0
votes2
answers683
viewsA: Save image name and extension and upload to a specific php folder and then show in a table
The path of the image is missing, $tabela1 .= '<td><img src="' .$rows_cursos['Imagem']. '" /></td>'; this would only work if your image is in the same file folder if you use an…
-
0
votes1
answer51
viewsA: Variable taking all TAG values
Div has no value attribute and therefore results in Undefined you can pick up the token in the following way: console.log($('#token').text()) in js pure var variavel =…
javascriptanswered Ari Santos 361 -
1
votes3
answers43
viewsA: Decrement of JAVASCRIPT forms
From an id to the added td and remove using this id example below: var counter = 1; jQuery('a.add-author').click(function(event){ event.preventDefault(); counter++; var newRow = jQuery('<tr…
-
3
votes2
answers495
viewsA: Concatenate SQL Server
SELECT concat( UPPER(admatribuido), ' - ',cast([quantidade_admAtribuido] as varchar(100))) AS [admAtribuido], Count(admatribuido) AS [quantidade_admAtribuido] Use the Concat function as in the above…
-
1
votes1
answer31
viewsA: Problem aligning with responsiveness
Place the button inside the image box, thus the position:absolut will be in relation to this box and not the external box that changes size, and so you always have the same position. see below:…
-
3
votes2
answers122
viewsA: I cannot filter array objects using Filter
Substitute: return filme.genres.id == 3 for: return filme.genres.find(x => x.id == 3) working code: var filmes = [ { title: 'Primeiro Filme', genres: [ { id: 10 }, { id: 15 }, { id: 21 } ] }, {…
-
2
votes2
answers800
viewsA: How do I put two Datatables on the same page?
Here’s a basic example of how to do for a better use of all functions of the datatable look Aki: https://datatables.net/examples/index and for other examples $(document).ready(function() {…
-
0
votes1
answer1129
viewsA: Popular Datatables via a JSON variable
The most advisable is you refatora to make the request ajax in the datatable even according to the manual: https://datatables.net/examples/ajax/objects.html $(document).ready(function() {…
ajaxanswered Ari Santos 361 -
1
votes1
answer795
viewsA: Division between values - Query SQL Server 2012
When you use select t1.Ano,t1.Mês,t1.horas / t2.total_horas by you.hours and t2.total_hours be integer we will have as answer integer values ie Ano Mes Horas total_horas media 2018 1 107 766 H 0…
-
0
votes2
answers1039
viewsA: Add array within array
change $exercicioarraycomresposta = $exercicioarraysemresposta[$exercicioarraysemresposta[0]['respostas']] = $arrayrespostas; for $exercicioarraycomresposta = $exercicioarraysemresposta;…
phpanswered Ari Santos 361 -
1
votes2
answers1165
viewsA: Script to check if directory is empty
In php can be done so according to the Answer found in : https://stackoverflow.com/questions/7684881/php-how-to-list-files-in-a-directory-without-listing-subdirectories $files = scandir($dir);…
-
1
votes3
answers62
viewsA: Fill in 3 selects without repetitions
I understood that there was a hierarchy in the selects(S1>s2>S3) so select 2 cannot prevent 1 from selecting any value and I suggest the solution $(document).ready(function(){…
-
4
votes3
answers1047
viewsA: Apply effect when changing value of an input
A possible solution would be: $(document).ready(function(){ console.log('teste') $('input').change(function(){ $('p').css('font-size', $(this).val()*3) }) }) <script…
-
1
votes3
answers2936
viewsA: Check last record of an sql table
this works well but add a column repeating the id you can delete or use subquery SELECT MAX(collummID),* FROM tabela
-
1
votes2
answers430
viewsA: Add variable whenever called
suggestion: $opcoes = ["proutos", "fotos"]; foreach($opcoes as $id => $opcao){ echo '<a id="'.++$id.'" href="#menu'.$id.'">'.$opcao.'</a>'; } you have the same result however gets…
phpanswered Ari Santos 361 -
0
votes4
answers974
viewsA: Add Select Multiple values
select provides an array so vc te that add member to member of the array a simple way would be like this: $(document).ready(function(){ console.log("teste") $("select").change(function(){ var soma =…
-
1
votes1
answer262
viewsA: Truncate by ignoring the foreing key
The alternative I found was to delete all records from the table and restart auto_increment delete from tbEndereco where id < maxID+1 DBCC CHECKIDENT (tbEndereco, RESEED, 0) Note: delete only…
sqlanswered Ari Santos 361 -
0
votes1
answer262
viewsQ: Truncate by ignoring the foreing key
Cannot truncate table 'ARITHMETIC.glo.tbEndereco' because it is being referenced by a FOREIGN KEY Constraint. Truncate has already been executed in the agency table that references the address that…
sqlasked Ari Santos 361