Executing JavaScript allowing users to enter parameters
-
I suppose I’m rather a noob, but I have the Codemirror block installed. I want the code just for an illustration for some users, but I want to make it possible for them to enter just a couple of integers, and then execute the code that they see with those integers as input parameters, and display a result.
I made a CodeMirror block and just for testing, I wrote
alert(“foo”)
into that block. When I click on the execute button, it says
It Execute Code on Front End This button will work only on front end!
and then, I don’t understand what Front End means in this context, I tend to think of the browser as the front end… Can I achieve what I set out to do?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Executing JavaScript allowing users to enter parameters’ is closed to new replies.