Skip to content Skip to sidebar Skip to footer
Showing posts with the label Eval

Is It Safe To Use Eval In Javascript When It Only Executes Server-side Data?

Yes, it's a kinda duplicate of this question, but the answer given by @apsillers is a super-ans… Read more Is It Safe To Use Eval In Javascript When It Only Executes Server-side Data?

Javascript: How To Return Or Parse An Object Literal With Eval?

I have a little library that takes strings and constructs objects out of them. For example '-ke… Read more Javascript: How To Return Or Parse An Object Literal With Eval?

Is Using Javascript Eval() Safe For Simple Calculations In Inputs?

I would like to allow user to perform simple calculations in the text inputs, so that typing 2*5 wi… Read more Is Using Javascript Eval() Safe For Simple Calculations In Inputs?

How Do I Dynamically Call A Javascript Object's Method

I think that I'm missing something very simple here. I want to pass a function an object and th… Read more How Do I Dynamically Call A Javascript Object's Method

Getscript Or Eval In Specific Location?

I was wondering if eval (or some variant of jQuery's getScript) can be used to position externa… Read more Getscript Or Eval In Specific Location?

Global.eval Is Not Able To Visit Variables In The Lexical Scope. Does The Behavior Comply ECMAScript Standard?

I have a JavaScript file, e.js var global = Function('return this')(); var i = 1; console… Read more Global.eval Is Not Able To Visit Variables In The Lexical Scope. Does The Behavior Comply ECMAScript Standard?

Using A Href To Call Javascript Function With Parameter

I'm trying to call javascript function from a href . the function has a parameter which will be… Read more Using A Href To Call Javascript Function With Parameter