Click here to Skip to main content
15,176,980 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionReplacing the eval() function with something faster, more safe Pin
jkirkerx21-Dec-20 8:52
professionaljkirkerx21-Dec-20 8:52 
AnswerRe: Replacing the eval() function with something faster, more safe Pin
Graham Breach21-Dec-20 9:27
MemberGraham Breach21-Dec-20 9:27 
GeneralRe: Replacing the eval() function with something faster, more safe Pin
jkirkerx21-Dec-20 10:21
professionaljkirkerx21-Dec-20 10:21 
Questionhigher order functions Pin
atomattacker-png21-Dec-20 2:49
Memberatomattacker-png21-Dec-20 2:49 
AnswerRe: higher order functions Pin
Richard MacCutchan21-Dec-20 3:06
mveRichard MacCutchan21-Dec-20 3:06 
GeneralRe: higher order functions Pin
atomattacker-png21-Dec-20 3:21
Memberatomattacker-png21-Dec-20 3:21 
GeneralRe: higher order functions Pin
Richard MacCutchan21-Dec-20 4:13
mveRichard MacCutchan21-Dec-20 4:13 
GeneralRe: higher order functions Pin
Richard MacCutchan21-Dec-20 5:02
mveRichard MacCutchan21-Dec-20 5:02 
If you add the line:
JavaScript
function timeFuncRuntime(f) { f();}

somewhere in your script section it should work. The timeFuncRuntime function must be defined, and take a function as its only parameter. It will then call that function and execute it. So the call in the other block of code passes the anonymous function to timeFuncRuntime, where it gets executed.
GeneralRe: higher order functions Pin
atomattacker-png21-Dec-20 5:36
Memberatomattacker-png21-Dec-20 5:36 
GeneralRe: higher order functions Pin
Richard MacCutchan21-Dec-20 5:44
mveRichard MacCutchan21-Dec-20 5:44 
QuestionAttempting to pre-populate text field and mailto based on ID Pin
Member 1502531419-Dec-20 2:10
MemberMember 1502531419-Dec-20 2:10 
QuestionLooking to run a PHP page in the background using pure Javascript Pin
jkirkerx17-Dec-20 14:50
professionaljkirkerx17-Dec-20 14:50 
AnswerRe: Looking to run a PHP page in the background using pure Javascript Pin
DerekT-P17-Dec-20 23:54
professionalDerekT-P17-Dec-20 23:54 
GeneralRe: Looking to run a PHP page in the background using pure Javascript Pin
jkirkerx18-Dec-20 7:10
professionaljkirkerx18-Dec-20 7:10 
GeneralRe: Looking to run a PHP page in the background using pure Javascript Pin
DerekT-P18-Dec-20 8:11
professionalDerekT-P18-Dec-20 8:11 
GeneralRe: Looking to run a PHP page in the background using pure Javascript Pin
jkirkerx18-Dec-20 8:53
professionaljkirkerx18-Dec-20 8:53 
GeneralRe: Looking to run a PHP page in the background using pure Javascript Pin
DerekT-P18-Dec-20 9:26
professionalDerekT-P18-Dec-20 9:26 
GeneralRe: Looking to run a PHP page in the background using pure Javascript Pin
jkirkerx18-Dec-20 9:47
professionaljkirkerx18-Dec-20 9:47 
AnswerRe: Looking to run a PHP page in the background using pure Javascript Pin
jkirkerx18-Dec-20 13:27
professionaljkirkerx18-Dec-20 13:27 
AnswerRe: Looking to run a PHP page in the background using pure Javascript Pin
jkirkerx18-Dec-20 14:31
professionaljkirkerx18-Dec-20 14:31 
AnswerGot it Pin
jkirkerx18-Dec-20 14:47
professionaljkirkerx18-Dec-20 14:47 
QuestionFinding the definition of a component from the place of its use Pin
simpledeveloper18-Dec-20 20:43
Membersimpledeveloper18-Dec-20 20:43 
QuestionRe: Finding the definition of a component from the place of its use Pin
Richard MacCutchan18-Dec-20 0:39
mveRichard MacCutchan18-Dec-20 0:39 
AnswerRe: Finding the definition of a component from the place of its use Pin
simpledeveloper18-Dec-20 16:40
Membersimpledeveloper18-Dec-20 16:40 
GeneralRe: Finding the definition of a component from the place of its use Pin
Richard MacCutchan18-Dec-20 23:40
mveRichard MacCutchan18-Dec-20 23:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.