|
|
Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs
Page 6 of 7
for (Count=1; Count<100; Count++ {
The for statement is missing one or more semicolons (;) to separate its arguments. This error typically occurs when you've used commas
instead of semicolons -- a common mistake because JavaScript uses commas as an argument separator for everything but the for loop (the syntax of the JavaScript for loop comes from C). As an example, this results in an error:
for (Count, Count<10, Count++) {
These errors occur when you forget to add the requisite brace either for a function or part of a compound statement (with, if, for, for/in, while). For instance, in the following you need a } to close out the for loop.
for (Count=1; Count<10; Count++) {
var varOne=1;
var varTwo=2;
JavaScript doesn't like you to nest /* multi-line comments. The following results in an error. To fix the error remove the second /*.
/* this is a test /* of a nested comment*/
This error message says JavaScript is out of memory and cannot perform any more actions. It typically occurs in scripts that create lots of string objects. A common example is the scrolling "marquee" used to move a train of characters across the screen or status bar. The better-written marquees shouldn't exhibit short-term "out of memory" problems, but because of code-cleanup bugs in JavaScript, continued use of the script will eventually lead to a memory failure.
This is JavaScript's generic error message. It appears if JavaScript detects a syntax problem with the script but cannot determine precisely what it is, usually because the code leaves JavaScript in an unknown state. For example, an incomplete assignment such as the following triggers the "syntax error" message:
ThisResultsInAnError=;
JavaScript uses double equals signs when testing for equality, such as in an if or while expression. This error occurs if you use only one equals sign. Fix the problem by adding a second equals sign. Here is a
before-and-after example:
if (color="blue") // not accepted
if (color=="blue") // accepted
This is a common problem, caused when you forget to append a " or ' character to end a string literal:
NameOfMyCat="Santana
Fix the error by adding a " (or ', as needed) quote to complete the string literal. This error also occurs if the string you've defined in your script is too long (over 254 characters, when using Navigator 2.0). To fix this error you'll need to break up the string into smaller chunks, and assemble it in this manner:
MyString = "first part ";
MyString += "second part ";
MyString += "third part";
and so forth. Each separate string assignment should be 254 characters or less. There is virtually no limit (except for available memory) to the overall length of the string you define in this way.