Examples of using Javascript language in English and their translations into Czech
{-}
-
Colloquial
-
Official
For JavaScript language, the"client" mode is set.
Expression written in the JavaScript language syntax.
For JavaScript language the return value is set in return statement.
This object is used in scripts written in JavaScript language.
In the JavaScript language, it is easier to create a variable and assign a value there.
This method is not functional for Web panels in JavaScript language.
In panels designed with the JavaScript language, the auxiliary object PmDateObject is used.
The main purpose of this chapter is to show you how to transfer your panels to JavaScript language.
The main difference is that in the JavaScript language has different types for"Date" and"Array.
In the JavaScript language, this statement has a slitly more comlicated syntax, but it is much more general.
The yyy string is an initialization code in the javascript language that is run during reading the page.
The JavaScript language does not support this approach and so it is necessary to write each property or method.
The basic concept of VBScript and JavaScript languages makes them ideal for safe programming.
The JavaScript language has its own Date() object, but it is not recommended to use in the PROMOTIC system.
This preconfiguration can be used to test andevaluate user created mathematical expression( PmExpr) in JavaScript language syntax.
The JavaScript language has its own Array object, but it is not recommended to use such object in the PROMOTIC system.
The drawing algorythms are always written here in JavaScript language, regardless on the PmPanel setting of" Scripting language settings" configurator.
The JavaScript language also has a great number of similar functions, but it is not recommended to use them- it is better to use just the Pm object methods.
In PROMOTIC JavaScript panels it is not possible to use the standard arrays of the VBScript and JavaScript languages see Language data types.
For calling methods, the JavaScript language seems to be easier to use, because there are always brackets written after the method name.
Both these types are used in the PROMOTIC system very often, butthe implementation style of these types in the JavaScript language is not suitable for the purposes of the PROMOTIC system.
During the time, the JavaScript language reached a very strong position and is considered to be the esssence of the current internet technologies.
Basic principles of Web panel creation are described in Web panels The individual differences between the syntaxe of both languages are briefly described in Comparison of the VBScript and JavaScript languages chapter.
Similar concept is used also for the JavaScript language: All PROMOTIC methods, that return a date, return"something like a real number.
In the JavaScript language, each statement must be separated by semicolon and so it is possible to place multiple statements on a single row.
When designing a PROMOTIC application, the designer may encounter the JavaScript syntax on these locations:The purpose of this chapter is to show that even if the JavaScript language is considered to be more general(and therefore also more complex), for the PROMOTIC system purposes the written code seems simpler and in many cases easier to understand than the code written in VBScript language. .
Similar concept is used also for the JavaScript language: The new Pm. CreatePmArray method can be used for creating"Array" as a special PmArray object, and all PROMOTIC methods that should return"Array", return this object.
In a Web client,in a panel written with JavaScript language, the TrPrintGraph2. htm file will be used regardless on the setting.
The basics of the VBScript and JavaScript language, including the description of its functions and statements, are comprised in this documentation.
The scripting system is based on worldwide commonly used programming language JavaScript or VBScript.