Posts by Diego Henrique • 2,916 points
172 posts
-
0
votes1
answer356
viewsA: Javascript function does not run Online
To all who commented in short answer to the question, I reached the conclusion. It was necessary to change the following lines: wrong onclick="nome(txt)" removed the txt it was not necessary to…
javascriptanswered Diego Henrique 2,916 -
-1
votes1
answer356
viewsQ: Javascript function does not run Online
The code below only works on localhost , online does not work, that is, it works perfectly on my machine, when I transfer to the server , none of it works, I already broke my head and could not…
javascriptasked Diego Henrique 2,916 -
0
votes2
answers215
viewsA: How to pass the Syntax or Semantics written in the text field, to a Textarea
By virtue of the comment of Sergio just above. Have escaped the simple quotes from inside the string, was the key point for everything to go right in the textarea. Behold: function gera() { var a =…
-
0
votes2
answers215
viewsQ: How to pass the Syntax or Semantics written in the text field, to a Textarea
Let’s go to such doubt, this is more a doubt than a logical reasoning. I have some input on the HTML page, and the same transfers its value(s) to textarea, by clicking a button. Great, so far so…
-
0
votes2
answers245
viewsA: How to toggle between List and Gallery
In continuity, the reply of Tobias Mesquita which proved to be practical in the way as a List/Grid view behaves, as regards stylised elements with CSS. I could not, without sharing my answer as I…
-
4
votes2
answers245
viewsQ: How to toggle between List and Gallery
What I intend to create is similar to Grid view used in systems of the type Mercado Livre. It would be a function done in javascript that switches between a List or Gallery, using the same data in…
-
2
votes4
answers325
viewsA: Loop 20 to 20 lines
After some attempts based on answers here from colleagues, I had a clear vision, just define two variable with a scope greater to be initialization and another to condition, already the "click…
-
6
votes4
answers325
viewsQ: Loop 20 to 20 lines
I would like every click on the button to count, and the same would invoke the variavel to change the initialization and the condition of noose for, for a numerical value of 20 on 20. It would be…
-
0
votes1
answer205
viewsA: How to script auto-complete/increment
Good guys, I did ... First, an array is created, which will have its compact library where we place the data that will be used sequentially. Soon after, in the function autocompletar(), defined that…
-
2
votes1
answer205
viewsQ: How to script auto-complete/increment
There was a need to create a text field that would receive names of cities, however complete the word in the field when starting the first digítos. I need some idea, function with Arrays literals,…
-
-2
votes1
answer1359
viewsA: Replace wrong words in a Text Box
Good Folks, this script was designed based on grotesque grammatical errors commonly used in everyday life, both at the fingertips and at the tip of the tongue. Sometimes they don’t even exist in…
-
-1
votes1
answer1359
viewsQ: Replace wrong words in a Text Box
I wanted an idea of how to create something of the type, text field, where we type some wrong word(s) and soon is corrected(s). For example: <body><input type="text" id="exibir"…
-
1
votes1
answer607
viewsQ: To select a switch/case statement each click on the button
I would like to make list(Gem) of A-Z. A detail, based on breaking/dividing this list(Gem) alphabet into parts: Although my difficulty is in, after being clicked on the button, the same bring up the…
-
4
votes3
answers6684
viewsA: How to create a dynamic variable
The method eval(); is an option. Perhaps the only answer here that will work for the non-global variables. Although eval(); should not be used in this case as there are better methods. Speaking of…
-
4
votes3
answers6684
viewsQ: How to create a dynamic variable
I have a field(input text), and would like to get the value, and pass as variable. In other words, pass the value of this text field into the: var valor do campo aqui ; See the example I leave:…
-
0
votes1
answer2606
viewsQ: Insert a loop inside another loop
I wish to add the second to the first. For illustration, I will use the simple example below as a basis: <script> n = 10; for ( var i = 0; i < n; i++){document.body.innerHTML += i;} for (…
-
2
votes2
answers42321
viewsA: How to break string, replacing space by line break
Good, your contribution has helped in full, now put my feat, so that it stays for future analysis and study by other users who as well as I have the same doubts. Behold: texto = "Bruna Dora Carla…
javascriptanswered Diego Henrique 2,916 -
1
votes2
answers42321
viewsQ: How to break string, replacing space by line break
I need to Break a String(Phrase) in the proper whitespace, so that it is inserted in place of the line breaking \n escape character, in order for it to skip line-by-line. See an example logic,…
javascriptasked Diego Henrique 2,916 -
0
votes2
answers1311
viewsA: How do list sorted by letter?
Based on this as an initial basis, I successfully conclude this achievement, which I intended. Now, I share with you. Suggestion Box - List Sorted by Letter, in order to have an idea of how this…
-
0
votes2
answers1311
viewsQ: How do list sorted by letter?
I suppose I have a list of names, at array in Javascript. But I’m looking for a way to do it in the suggestion box style, where you only press an alphabetical key inside the field and as soon as you…
-
1
votes2
answers13508
viewsA: How to pass numbers to alphabet letters
Okay, Brumazzi D.B Thank you for your attention on my question. Done! I leave here the code for future research by other users. <script> var dir = "video"; window.onload = function(){ alfabeto…
-
1
votes2
answers13508
viewsQ: How to pass numbers to alphabet letters
Converts Numbers from 1 ao 26 for A - Z of the Alphabet. I have a directory with several files and wanted to do a "FOR" for, ... the name(file). I’m doing this with files named by ordinal numbers,…