PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
18. Sequence for running the code of buttons/links
Previous pageTable of contentsNext page
Two click codes are associated with the buttons/links:
  • a browser click code, entered in WLanguage (or in JavaScript) in the code editor. This code is included in the HTML page and it will be run on the user's computer.
  • a server click code, entered in WLanguage (only in dynamic pages). This code will be run on the server.
The table below presents the different codes run (according to the type of button/link) and the associated action.
The appearance of the button/link and its target do not affect the sequence in which the codes are run.
Tip: To understand and memorize the order in which server and browser codes are executed, think as the Internet user would: the user clicks the button in the browser, therefore the browser click must be run first.
ActionSequence of codes runRemarks
Send values to the server (submit)Associated action:
  • Run browser codes only
  • Run server and browser codes
Code run:
  1. Browser click code of the control.
  2. Browser code of the page submit (if it exists).
  3. Sending the values found in the page controls to update the page context on the server.
  4. Server code of the control (if necessary).
Page context automatically updated on the server (Session or AWP dynamic pages only).
Associated action: Display a site page
Code run:
  1. Browser click code of the control.
  2. Browser code of the page submit (if it exists).
  3. Sending the values found in the page controls to update the page context on the server.
  4. Server code of the control.
  5. Page display.
Page context automatically updated on the server (Session or AWP dynamic pages only).
Automatic page display.
Reinitializing pages (reset)Associated action: Run browser codes only
Code run:
  1. Browser click code of the control.
  2. Displaying the initial page (page with all controls initialized to empty or to 0 and execution of initialization code for each control then for the page).
Do not send anything to the serverAssociated action: Run browser codes only
Code run:
Browser code of the control only.
Associated action: Run server and browser codes
Code run:
  1. Browser click code of the control.
  2. Server code of the control.
Associated action: Display a site page
Code run:
  1. Browser click code of the control.
  2. Server code of the control.
  3. Page display.
Automatic page display
Previous pageTable of contentsNext page
Comments
Click [Add] to post a comment