PDA

View Full Version : Mathematical operations in html?



marknelxcore
09-20-2011, 10:55 AM
I am creating a grading system using html, please help me how to create functions using html since we are not allowed to use php/sql etc. the onlt prog lang we can use is jscipt. thaanks,

jscheuer1
09-20-2011, 02:21 PM
We don't do homework here. I can tell you that there's no Math in HTML. You would need javascript, aka in Internet Explorer as jscript. If you have some code already and you want some suggestions on it, we can probably help with that. And, last time I was in school:

Spelling Counts

Speaking of school, the site w3schools has some stuff on javascript and math (jscript is javascript):

http://www.w3schools.com/jsref/jsref_obj_math.asp

Assuming you know the basics of javascript/jscript it's a good reference. If not, start here:

http://www.w3schools.com/js/default.asp

However, if your instructor is super strict, technically speaking jscript is most javascript + some proprietary stuff available only in Microsoft products. They have a knowledge base for it:

http://msdn.microsoft.com/en-us/library/d1et7k7c(v=VS.85).aspx