Posts by Ronaldo Araujo • 304 points
18 posts
-
0
votes2
answers367
viewsA: Discover numeric sequence in javascript array
did so, it works. let teste = [3, 6, 9, 10, 11, 12, 16, 19]; filtro = []; anterior = ''; lock = 0; for (x = 0; x < teste.length; x++) { atual = teste[x]; if (anterior == '') {…
javascriptanswered Ronaldo Araujo 304 -
0
votes2
answers80
viewsA: Message notification, similar to ALERT
Would that be? function validar() { var nome = form1.nome.value; var senha = form1.senha.value; if (nome == "") { $('#balao').html("Nome não informado. Digite o nome para ter acesso…
-
0
votes2
answers56
viewsA: How to return only the last maintenance line of each equipment?
The main flaw is not identifying where the variables in the ON clause come from. Here I identify the tables by a letter and link the variables to the respective table. I also changed from INNER to…
-
0
votes1
answer35
viewsA: Error 1064 in Mysql Workbench
1 - Invert the variable and its format like this 2 - The external reference needs to define what it connects to in the table and cannot be created to a table that has not yet been created. you will…
-
2
votes1
answer213
viewsA: What is the correct way to use flush(); and Sleep(); in a foreach?
In theory your script could work, but in the php manual it explains that many servers do not send the page until all the script has been completed, even if you buffer part of the code. The…
-
2
votes1
answer34
viewsA: Set paragraph as wide as possible
tip 1: open the html inspector on the site you are copying to access the css settings #header_superior ul { list-style: none; width: 100%; height: 100%; margin: 0 auto; padding: 0; font-size: 0; }…
cssanswered Ronaldo Araujo 304 -
0
votes1
answer17
viewsA: Combo box with Maximo and Minimo
function _row(r) { var td = document.createElement("td"); var combobox = document.createElement("select"); quantidade = r.Quantidade; …
-
0
votes3
answers179
viewsA: Using a Class within another CSS Class
I usually insert the classes in the server side page load. in php would look like this: $result = mysqli_query($CONN,$sql); $linhas = myslqi_num_rows($result); for($x=0;$x<$linhas;$x++){ $campo =…
-
1
votes2
answers31
viewsA: How to create a link spacing from the same cell of a table?
td{padding:0 15px;} <table> …
-
0
votes2
answers1575
viewsA: how to place content from another blog (the posts) on my wordpress site (ex : last posts)?
Normally use php file_get_content() to fetch the data I manipulate the data with something like this: $arquivo = file_get_contents("http://url.com"); $dom = new domDocument();…
-
1
votes1
answer63
viewsA: Search for particular record(s) (s) does not perform table filtering using JS
I first liked your solution to save server processing and data transfers. Exchange Cells[1] with Cells[2]
-
1
votes1
answer475
viewsA: Date filter in a table with javascript
1 - You will have to load all filters into hidden div fields and display them as selected. The only method on the client side is this. because any other you would have to inform connection data to…
-
1
votes1
answer74
viewsA: disable a field from a select value
Despite the complicated text I will try to help $(document).ready(function(){ $('#tipo_contac').on('change',function(){ let tipo_contac = $(this).val(); if(tipo_contac != 'valor esperado') {…
-
0
votes2
answers186
viewsA: How to use appendchild
missing to create ul appendchild adds to the selected element what is declared in the sequence in parentheses. In case you had created a li element and placed it in the html body. However, usually…
-
0
votes1
answer55
viewsA: Isset and foreach syntax
I would do so: if(isset($_POST["produto"],$_POST["valor"]) && $_POST["qtd"] > 0){ echo "Ítens escolhidos:<BR>"; $table = '<table>'; $table .= '<thead>'; $table .=…
phpanswered Ronaldo Araujo 304 -
0
votes1
answer333
viewsA: How to make the back-end and front-end connection?
basically creating the receive.jsp page that will receive the POST variables and you decide what to do with them. I use php, but jsp tbm is server side language
-
0
votes1
answer27
viewsA: How to concatenate without changing the existing content
1 - the var textotitle should be within the remove function 2 - I think I’ve lived in jquery, but that would be it with him: $('.tarefa').eq(0).clone().appendTo('.tarefas'); but I would change the…
-
0
votes1
answer101
viewsA: Put autoplay function on slider
without third party code, the only dependency is jquery: First I create the div that will contain the images with the overflow Hidden property and determining width and height. inside it I place a…
javascriptanswered Ronaldo Araujo 304