|
|
|
|
|
- Server code or browser code?
- Browser code: WLanguage code or JavaScript code?
- Additional events
- Dynamic site in PHP: Server code: WLanguage code or PHP code?
Server code or browser code? Two types of actions can be programmed in a WEBDEV website:
To manage these two types of actions, the WEBDEV code editor differentiates between two types of code: - Server code (yellow or pink code in the code editor): This code is written in WLanguage (yellow code) or PHP (pink code, only available in PHP pages).. This code is run on the server.
This code is only available in dynamic pages (in Session or AWP mode). - Browser code (green or blue code): This code is written in WLanguage (green code) or Javascript (blue code)..
When the page is saved, this code is automatically converted to JavaScript and included in the WEBDEV HTML pages. This code is run locally (on the computer of the user) and requires no server action.
Browser code: WLanguage code or JavaScript code? Code executed on the user's computer (browser) is represented by a green or blue banner under the code editor..
- green banner = WLanguage: the abbreviation WL precedes the code name.
- blue bar = JavaScript: the code header is preceded by the JS symbol.
To switch from green code (WLanguage) to blue code (JavaScript), simply click the WL symbol on the code header. Conversely, click JS to switch to WLanguage. When the page is saved, the WLanguage code is automatically converted to JavaScript. We advise you to develop in WLanguage. The link "Add other events" in the code window is used to manage events in addition to those proposed by default. Simply click on the "Add more events to xxx" link at the end of the code window: the list of available additional events is displayed.. Simply select the desired events to add them to the codes displayed by the code editor. Examples of additional events: double-click, key pressed, key released, button pressed, mouse moved, etc. Reminder: Browser code is available for dynamic pages (in Session or AWP mode) and static pages. Dynamic site in PHP: Server code: WLanguage code or PHP code? The codes run on the server side are represented by a Yellow or Pink header in the code editor.
- Yellow banner = WLanguage: the acronym WL precedes the code name.
- Pink banner = PHP: the PHP acronym precedes the code name.
To switch from yellow code (WLanguage) to pink code (PHP), simply click the WL symbol in the code header. Conversely, click PHP to switch to WLanguage. When the PHP page is saved, the WLanguage code is automatically converted to PHP. We advise you to develop in WLanguage.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|