Top "Eval" questions

eval is a function that allows a programmer to execute arbitrary code written in the same language, from a string variable within a code.

How can I write a function accepting callBack function and run it in a 'safe' way?

I want to write such a function: function doGoodJob(someId, callBackfunction){ // some stuff with someId // todo: RUN callBackFunction here } They …

javascript callback eval code-injection
eval in chrome package app

I would like to create a package app chrome extension to allow the user to write and execute javascript code (…

javascript google-chrome google-chrome-extension eval google-chrome-app
What's the better practice: eval or append script?

I need to execute a custom piece of JavaScript I got from some AJAX call. I could do an eval …

javascript jquery dom eval
What specifically are the dangers of eval(parse(...))?

There are several questions on how to avoid using eval(parse(...)) r-evalparse-is-often-suboptimal avoiding-the-infamous-evalparse-construct Which sparks the questions: Why Specifically should …

r parsing eval
Why does JavaScript's eval need parentheses to eval JSON data?

I've learned (the hard way) that I need to add parentheses around JSON data, like this: stuff = eval('(' + …

javascript json eval
javascript pass eval variables

i have eval function, which needs to execute javascript from php. but i need to pass element, so i can …

javascript jquery eval execution
Python: How to pass arguments to the __code__ of a function?

The following works: def spam(): print "spam" exec(spam.__code__) spam But what if spam takes arguments? def spam(eggs): …

python function parameter-passing exec eval
Read file with fs.readFileSync and eval contents...which scope have the functions? How to access?

I recently tried to import a file into my existing node.js project. I know this should be written with …

javascript node.js eval fs google-closure-templates
How to use Eval in codebehind to set Page.Title

I have a SQLDataSource that is bound to a ListView control but I want to place parts of the bound …

asp.net vb.net data-binding eval page-title
JSLint "eval is evil." alternatives

I am have some JavaScript functions that run on both the client (browser) and the server (within a Java Rhino …

javascript eval dry jslint