Posts by Daniel de Andrade Varela • 267 points
9 posts
-
0
votes1
answer64
viewsA: Callback Function Return
I’m not quite sure of your doubt, but I believe that you wish to seek the value of an asynchronous function, I will write a code to try to help you, if not what you seek leave a comment so I can…
-
0
votes2
answers341
viewsA: How to create a menu that performs an effect with jquery
I don’t use jQuery very long, but I believe that what you want is a Drop Down Menu Plugin, see this link: http://sweet-dropdown.adepto.as/ it seems to me very simple to use, the site has examples of…
-
1
votes2
answers98
viewsA: Use the number of characters obtained in a regular expression sentence in string substitution
I found a simple solution, replace can receive a function, so I can do whatever I want, see my solution: markdown = markdown.replace(/(\#+) *(.+)/ig, function(exp, n1, n2){ size = n1.length; return…
-
2
votes2
answers98
viewsQ: Use the number of characters obtained in a regular expression sentence in string substitution
I am doing a Markdown parser as part of a study on regular expressions, and I would like to use the amount of characters obtained in an excerpt of the expression, as a basis for string substitution,…
-
2
votes0
answers60
viewsQ: How to animate Transform-Scale and then animate Transform-translateX using Transition?
I would like to animate the Scale and then animate the translateX using Transition, is that possible? or I must use Animation and keyframe? I’d like to do something like this: .anima{ transition:…
-
1
votes1
answer1063
viewsQ: How to extract a SFX file with 7zip in command line?
I would like to know how to extract a SFX file using command line, as an example I have the file Download JDK 8, Self Extractor, its I download this file and extract it using 7zip by graphical…
-
4
votes1
answer9015
viewsQ: How to create a. BAT configuration file in windows?
I am automating some processes on a Windows server, and would like to create some files. bat for this but for such would be necessary the . BAT were able to read a configuration file so I did the…
-
0
votes3
answers4208
viewsA: Is it possible to create an object dynamically in JS without using Eval?
The solution I had found is as follows: function createDynamicObject(val, arr, obj){ // if(typeof obj == "undefined") obj = {}; // if(arr.length > 1){ key = arr.shift(); obj[ key ] = {};…
-
3
votes3
answers4208
viewsQ: Is it possible to create an object dynamically in JS without using Eval?
I have the following code: Arr = ["meu", "objeto", "dinamico"]; Val = 100; Eval = ""; obj = {}; for(i in Arr){ Eval += "['"+ Arr[i] + "']"; eval("obj"+Eval+"={}") } eval("obj"+Eval+"="+Val); As you…