![FormCalc vs Javascript [PDF / XFA in HTML5]](/_next/image?url=https%3A%2F%2Fmedia2.dev.to%2Fdynamic%2Fimage%2Fwidth%3D800%252Cheight%3D%252Cfit%3Dscale-down%252Cgravity%3Dauto%252Cformat%3Dauto%2Fhttps%253A%252F%252Fdev-to-uploads.s3.amazonaws.com%252Fuploads%252Farticles%252F08ejnh7qlpheezashz4p.png&w=1200&q=75)
FormCalc vs Javascript [PDF / XFA in HTML5]
This is one of our XFAarticles which investigates the important factors to be considered during the conversion from FormCalc script to JavaScript (since none of the current browsers supports formcalc script, therefore the conversion to JavaScript is a prerequisite in HTML5). Prior to diving into the conversion, we should separate out the keywords, operators and separators used in the FormCalc script. This separation would be helpful to allow for replacing the tags with related JavaScript-supported tags. Keywords [“and”, “else”, “elseif”, “endif”, “eq”, “ge”, “gt”, “if”, “infinity”,”le”, “lt”, “nan”, “ne”, “not”, “null”, “or”, “then”, “this”, “break”, “continue”,”do”, “downto”, “end”, “endfor”, “endfunc”, “endwhile”, “exit”, “for”, “foreach”,”func”, “in”, “return”, “step”, “throw”, “upto”, “var”, “while”]; Operators [“+”, “{“, “}”, “-“, “%”, “*”, “/”, “;”, “{“, “}”]; Separators [“(“, “)”, “[“, “]”, “,”, “.”, “..”, “.#”, “.*”]; Some examples of replacement Operational Logical **If Expres
Continue reading on Dev.to JavaScript
Opens in a new tab


