--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/9IV1XLoEzLA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The point is eval is dangerous and its use should be discouraged - especially for new users who won't be aware of the risks it can pose.
What you haven't explained in this thread is exactly what you are proposing. You've shared an HTML page - What is it? how is it meant to be used? What problem are you trying to solve?
Nick
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
"simpler for new users." to do what?What problem are you trying to solve?
What the node uses in the runtime is irrelevant to the end user - just because the node provides a stripped down ui does not mean the runtime side of it should use eval.
In this instance, I can see this sort of thing fitting well with the existing Change node - that already provides a succinct way to set a given property's value. In the next release it also gets a much richer set of capabilities around what values it can set - it is no longer limited to simple string values. I can see a future enhancement where the change node allows the user to provide a simple expression that will get (safely) evaluated - much like a spreadsheet function. Lots to think about it terms of what types of expression that should support... but it is the right place for it, rather than a new node.
Nick.
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
But you said you wanted it "simpler for new users" I doubt that new users are going to understand the syntax of js expressions and expression statements.Surely if you understand the js expressions and expression statements you aren't going to be put off by the function node?