What is JavaScript?

First and foremost JavaScript is a client side scripting language used to improve the usbability and functionality of web sites and web applications.

A simple example of this is client-side validation. Without client side validation, a programmer would have to process the contents of a form via a web server, and then send a response back if the form was completed incorrectly. JavaScript can eliminate this by simply validating the data directly in a web browser.

JavaScript is also not the best ...

Read more →
0

JavaScript Basics

Basics of JavaScript

This article was created to outline the basics of the JavaScript langauge.

JavaScript – Unsupported Browsers

When JavaScript is run in an unsupported browser, the script itself might be displayed as text within the browser. To prevent this from happening, it is best to use the HTML comment feature to comment out the code from the script.

For example:
<SCRIPT TYPE="text/javascript">
<!--  HIDE THE SCRIPT
FROM OTHER BROWSERS

JavaScript program
//
STOP HIDING FROM OTHER
BROWSERS  -->

</SCRIPT>
HTML is commented ...

Read more →
0

Floating Point Numbers

Floating Point Numbers

While working on a JavaScript calculator I became stuck in what should be simple mathematics. The use of decimal points resulting in addition and subtraction caused erros in the calculations. The cause is in the way machine language calculates decimal points.

Oracle offers some great insight into the cause and resolution: What Every Computer Scientist Should Know About Floating-Point Numbers

The JavaScript Budget Calculator is a work in progress, to view how a machine interprets decimals check out ...

Read more →
0
Page 1 of 2 12