Posts by evandrobm • 372 points
20 posts
-
0
votes1
answer24
viewsA: Call the date that table was created
Almost the same, just uses CREATE_TIME instead of UPDATE_TIME SELECT CREATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'dbname' AND TABLE_NAME = 'tabname' Reference in mysql…
-
0
votes2
answers675
viewsA: Maintain jquery javascript tab when refreshing the page
I would advise using one local Storage browser, can be done in JS with var abaAtual = 1; // Salvar a aba atual quando trocar localStorage.setItem('abaAtual ', abaAtual); // Buscar se tem uma aba…
-
1
votes1
answer75
viewsA: Bring the sum of IDS and data into two tables using SQL
There are some things I think you need to take into consideration, first it’s your JOIN, it doesn’t have an ON and looking at the structure of the two tables I don’t see a link between them for a…
-
1
votes1
answer72
viewsA: Mark a checkbox field if one or two options are chosen in the select field
Try a JS like that $('select[name="opcoes"]').on('change', function(){ $('.checks').find('input[type="checkbox"]').each(function(){ $(this).prop('checked', false); }); if($(this).val() !== ''){…
-
1
votes1
answer171
viewsA: Print all cards in the deck (Java)
I don’t know if it’s time to copy here, but there’s a lot of clasps there. I would recommend studying arrays, think of them as a set of variables, instead of having an int value on the variable you…
-
2
votes3
answers290
viewsA: Change scrollbar positioning in a div
A more direct way to do this with javascript is: var element = document.getElementById('ID-DO-ELEMENTO'); element.scrollTo(element.scrollWidth, 0);
-
1
votes2
answers791
viewsA: How can I print a variable from within the Javascript script?
Utilize console.log(), this will print on the browser console that can be accessed using F12 (look for the 'Console' tab')
javascriptanswered evandrobm 372 -
2
votes1
answer46
viewsA: Previous button deactivates when clicked on next
When he calls that line: $('button').removeClass('ativo') // remove a classe dos demais botoes It disables everyone, I imagine the intention is to remove the "YES" if you click on the "NO" of the…
-
1
votes2
answers264
viewsA: How to print the selected name in the Bootstrap confirmation modal?
I don’t even know how the browsers deal with it, but the id of an html tag besides being unique in the document, does not put more than one id per tag, only in classes we use more than one per tag,…
-
0
votes2
answers634
viewsA: Hover the mouse over the image and change the color of the caption
You have to put Hover in a parent tag, but change the child’s color. In your case just change the last CSS rule to: .post:hover .legenda { background-color: rgba(255,140,40,1); } I made a fiddle to…
-
1
votes2
answers370
viewsA: Javascript error - Datatables
The Datatables requires a well-formatted table to work, this error is common when it does not find a tag or if it contains errors. Here is an example of a table: <table id="myTable">…
-
1
votes2
answers1070
viewsA: How to arrange the table so that photo and information are on the same line?
Instead of table, I would recommend you use flexbox (here is a very good reference https://css-tricks.com/snippets/css/a-guide-to-flexbox/) You put a container with the image on the left and the…
-
0
votes2
answers44
viewsA: Alert de Sucesso
Oops, try to give a defaults Prevent function funcaoComAjax(e) { e.preventDefault(); alert("SEM RELOAD"); // FAZ TUA REQUISIÇÃO AJAX } <a href="https://answall.com"…
-
1
votes1
answer47
viewsA: Help in showing data saved in a database on a php page
This function in $user = $stmt->fetchall(PDO::FETCH_ASSOC) by name seems to return an associative array with all results, for this function to function as you expect with an assignment to $user…
-
0
votes1
answer526
viewsA: Insert account with Fortnightly, Monthly, Quarterly, Biannual and Annual period
I use in a financial system currently for installments something similar, and make the addition in Mysql even with the DATE_ADD function, like this SELECT * FROM table WHERE date =…
-
0
votes1
answer36
viewsA: Doubt in consultation of domains
robowhois is off, there’s a warning on the page, I’ve used this API once for this (https://www.whoisxmlapi.com/whois-api-doc.php), but as a third-party API I think it gets paid after 500 requests a…
-
2
votes1
answer76
viewsA: Mount array with users Permissions
If I understand correctly I think this helps you $teuArrayDePermissoes = array('users-index','users-show','users-create','roles-create','roles-delete'); $newArray = array();…
-
0
votes2
answers112
viewsA: Mark checkboxes when choosing select value, coming from a PHP (Laravel) BD
I would recommend that you make an AJAX request to search for a JSON with standard permissions. For example, you can create a route in Laravel ('/permissions/{group}') that you can check which group…
-
0
votes1
answer991
viewsQ: Send image to print automatically from web app (html, js and php)
Hello, I have a webapp where I take a photo with a frame for a badge and save it on the server, but I needed to have this image print automatically, ignoring that prompt that appears when we have…
-
1
votes2
answers325
viewsQ: Error running java program for printing through PHP
I have a web application that generates an image for a badge and to be able to send it automatically to print, I created a java program that does this. The program runs perfect, generated a jar,…