Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Transferring panels from VBScript technology to JavaScript

The main purpose of this chapter is to show you how to transfer your panels to JavaScript language. Common mistake warnings are included, methods described and debugging explained.
 
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. JavaScript is implemented as "case sensitive", i.e. it is necessary to observe the usage of capital letters in method names, commands and keywords. Commands must be separated by semicolon character ;
 
The first step of panel debugging is eliminating the errors reported by INFO system during local application runtime. While testing the panel on a web client (IE, Firefox, ...) the combination of keys CTRL+SHIFT+ALT+SPACE can be used. This debugging tool can be used to detect additional errors that would not show in local application.
 
Common errors that appear repeatedly:
- Missuse of capital letters in method names, commands and keywords.
- Commands not separated by semicolons.
 
Other errors that are common in web panels enabled by the Enable as WEB component configurator are:
- It is not possible to access Promotic objects outside of this panel. See Limitations for writing of algorithm (scripts).
- Reading or writing into the cell properties of the PmTable not replaced by methods (e.g. CellText replace by SetCellText, ...).
Navigation:
 
 
- Transferring panels from VBScript technology to JavaScript
 
 
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice