Posts by Michelle Akemi • 759 points
17 posts
-
3
votes1
answer161
viewsA: how to change an image src from another page
You can do it using only Javascript if that’s what you want. I’d do it like this: In place of that line of yours: window.location.href = 'scripts.html?imagem=Slide1'; And on the page scripts.html,…
-
4
votes2
answers11453
viewsA: Count vowels and know how many there are
There is a class in Python called Counter. With it you can do it efficiently and without reinventing the wheel. import re from collections import Counter def vogais(string): return…
-
2
votes3
answers1547
viewsA: How to create the Javascript function of Alert for a specific page menu?
It would be something like that? <script type="text/javascript"> function mostraAlerta() { alert("Retorne uma mensagem para o usuário ao clicar!"); } </script> <ul id="menu">…
-
9
votes5
answers1574
viewsA: Why do "Alert", "confirm" and "prompt" lock the loading independent of the definition order?
This is because the original JS is synchronous and the JS needs to lock the execution on the confirm, for example, so that your result is placed in the variable and can be used right at the bottom…
-
0
votes1
answer201
viewsA: Pass code via url with/to a java script (php+codeigniter)
I imagine it’s going to be something like this. I assumed that the $row->ID_LOCAL is in the $row, see if that’s right. And I changed the order of the parameters by first passing the ID to the…
-
1
votes1
answer265
viewsA: validate 2 recaptchas in memsa page by ajax
The grecaptcha.getResponse(elementId) expects a reference that the grecaptcha.render(el, {'sitekey' : 'minhakey'}) returned to you, not the DOM id (id='reset', id='email', etc.). I would, for every…
-
6
votes2
answers363
viewsA: Alternatives to Google Maps
The Open Street Map is the most famous and free alternative. If you googlar open street map android will fall on their Wiki, and there you will find more links to libraries that you can use.…
-
3
votes2
answers1004
viewsA: Group table data with two columns
I did a part of your query, see it working here: http://sqlfiddle.com/#! 2/fe175e/4 CREATE TABLE `teste` ( `tipo` varchar(10), `de` varchar(10), `identificador` varchar (10) ); INSERT INTO `teste`…
-
1
votes1
answer452
viewsA: Solve mathematical expressions in java using string
I would make a method to calculate recursively. Note that you have to prioritize division and multiplication. public static double CalcularRecursivo(String []valores, String[] operadores) { // o…
-
4
votes1
answer135
viewsA: Accordion sem jQuery
button.accordion { background-color: #eee; color: #444; cursor: pointer; padding: 18px; width: 100%; border:…
javascriptanswered Michelle Akemi 759 -
1
votes2
answers2565
viewsA: Error: You must provide at least one recipient email address
I think the problem is: /// aqui você adiciona um recipient $mail->AddAddress("[email protected]"); $mail->IsHTML(true); $mail->AddAttachment($curriculo['tmp_name'],$curriculo['name']); $data…
-
1
votes1
answer80
viewsA: Problems with Javascript arrays
Your code must look something like this: var total = lineOut.length; for (var i = 0; i < total; i++) { alert(lineOut[i].trim() + " - - " + lineOut[i + 1].trim()); } The problem is that in the…
-
4
votes1
answer2319
viewsA: Get value from a specific input using AJAX
jQuery(document).ready(function() { jQuery('#send_request').submit(function() { var dados = jQuery(this).serialize(); var id = $("#campo-hidden").val(); ///…
-
1
votes2
answers58
viewsA: Strange error when adding
That should work: function somar() { var campo_1 = document.getElementById("campo_1").value || 0; var campo_2 = document.getElementById("campo_2").value || 0; var campo_3 =…
javascriptanswered Michelle Akemi 759 -
2
votes1
answer98
viewsA: update Hidden value before Submit
The problem is because the code that generates the image in Base64 is asynchronous, that is, it runs outside the timeline of your code. I explain better: // o javascript executa o html2canvas e ...…
-
0
votes2
answers370
viewsA: Autocomplete in dynamic fields
Two ways, the simplest: function addAutoComplete() { jQuery('.produto').autocomplete("<?= $base ?>/scripts/funcoes_produto_nfe.php", { matchContains: true, selectFirst: false }); }…
-
7
votes4
answers13723
viewsA: Hide Javascript code
I searched several solutions on the internet in English using the term "javascript Obfuscator" and found some excellent solutions, but paid and very expensive (even more for Brazilians who pay the…
javascriptanswered Michelle Akemi 759