PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 computer of Web user.
  • 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 aspect of the button/link and its target do not affect the sequence in which the codes are run.
Tip: To understand and remember the order in which the server and browser codes are run, imagine that you are the Web user: the Web user clicks the button in the browser therefore the browser click is run first.
ActionSequence of codes runNotes
Send values to the server (submit)Associated action:
Execute browser codes only
Execute server and browser codes
Code run:
  1. Browser click code of control.
  2. Browser code of 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 control.
Page context automatically updated on the server (Session or AWP dynamic pages only).
Associated action: Display a page of the site
Code run:
  1. Browser click code of control.
  2. Browser code of 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 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: Execute browser codes only
Code run:
  1. Browser click code of 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: Execute browser codes only
Code run:
Browser code of control only.
Associated action: Execute server and browser codes
Code run:
  1. Browser click code of control.
  2. Server code of control.
Associated action: Display a page of the site
Code run:
  1. Browser click code of control.
  2. Server code of control.
  3. Page display.
Automatic page display
Previous pageTable of contentsNext page
Minimum version required
  • Version 23
Comments
Click [Add] to post a comment