• 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)
  • Thread Starter kjetilk

    (@kjetilk)

    I got a step further. When I previewed, clicking on the execute button printed

    alert(“foo”)

    in the box below, so I suppose that what’s front end mean in this context. Makes sense. I haven’t gotten the code to run, though…

    Plugin Author Vicky Agravat

    (@vickyagravat)

    Hello @kjetilk,

    It is experimental feature.

    So, we can’t provide more support on them…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Executing JavaScript allowing users to enter parameters’ is closed to new replies.