Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a MySql database where part of it handles instrument's depth of water. Each instrument has its own formula of calculation how depth the water when the operator collect the reading I stored the formula for each instrument in database/MySql.

Example formula: [55-57]

this is the simple minus operation, where the number is actually represent the id of a row. How do I represent those number with id of a row and later convert it to javascript readable code. I simply want to do keyup event where everytime user key in something into text field then the other part of HTML would reflect changes based on formula that I fetched from database

FYI, I'm using BackboneJS together with RequireJS

share|improve this question

put on hold as off-topic by John Conde Jun 11 at 15:08

  • This question does not appear to be about webmastering within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

1  
This apears to be one of the few occasions where you might want to read up on eval(). Use with care ;) –  Martijn Jun 11 at 7:12
    
This question appears to be off-topic because it is about programming which is off-topic at Pro Webmasters. Programming questions may be asked at Stack Overflow but be sure to read their FAQ before posting to ensure your question meets their guidelines. –  John Conde Jun 11 at 15:08
add comment

Browse other questions tagged or ask your own question.