Jump to content

Convert Pounds & Ounces to Grams


Dysan

Recommended Posts

retrieve the weight with MySQL/PHP and put the retrieved weight into your JavaScript variable. set-up a calculation to convert pounds/ounces to grams and then set-up a calculation to covert grams to pounds/ounces (or you could just store the original value "pound and ounces" in a variable; and get the variable - instead of converting back from grams). create a timing event with either setTime or setTimeout to switch the calculations, from one to the other, every five seconds.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.