ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

  • Overview
  • The available actions
  • Preset actions
  • Specific actions
  • Special case: sharing on social networks
  • Action destination
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
Choosing the action associated with the button (WEBDEV)
Overview
Regardless of the button type, you can associate an action with the button. WEBDEV offers the most common actions in the "General" tab of the control description window.
Action associated with the Button control
For more specific actions, click "More options".
In any case, you will have to define the destination of this action.
The available actions

Preset actions

Several preset actions are proposed by default in a drop-down list box. These preset actions depend on the elements in the page or project.
For example, you can choose to:
  • execute the click code of a Button control (browser code or server and browser code),
  • display a page of the site,
  • display a page from another site,
  • perform a custom action (send an email, call a phone number, connect to an FTP server, download a file, etc.). In this case, different parameters can be specified.
Caution: the actions are performed after the click code of the button (browser code and server code).

Specific actions

The "More options" link shows more options. You can for example:
  • do an action on another control,
  • set the position on one of the page anchors,
  • share a social network,
  • change current language
  • send the value of the page controls to ... a page or a script. For example, this option can be used to process the content of a form in a static site.
Remark: All these operations can also be performed in the code.

Special case: sharing on social networks

The "Share on a social network" action allows you to create a Button, Link or Image control (with clickable areas) to share the current page, domain or specific URL on a social network. This action can also be performed via the Social Network control.
Remark: Using a Button, Link or Image control (with clickable areas) allows you to fully configure the style used (however, it is recommended to comply with the license agreements of the different social networks). The Social Network control has advanced settings (e.g., display the number of shares, etc.).
The table below presents the information used for each social network:
Social NetworkShared elementEffect
FacebookThe domainCreates a Facebook post with a link to the domain of the current website.
Caution: A default index page must exist on the hosting server.
The pageCreates a Facebook post with a link to the current web page.
Custom targetThe URL must be typed in the "Target URL" control.
Case 1: URL of a Facebook page:
Increments the counter of Facebook page that was liked. Case 2: URL of any page or site:
Creates a Facebook post with a link to the specified page or website.
TwitterThe domainCreates a Tweet with a link to the domain of the current website.
The pageCreates a Tweet with a link to the current page.
Custom targetThe URL must be typed in the "Target URL" control.
Creates a Tweet with a link to specified URL.
LinkedInThe domainCreates a LinkedIn post with a link to the domain.
Caution: A default index page must exist on the hosting server.
The pageCreates a LinkedIn post with a link to the web page.
Custom targetCreates a LinkedIn post with a custom link.
The URL of the link to be sent must be entered in the "Target URL" control.
TumblrThe domainCreates a Tumblr post with a link to the domain of the current website.
The pageCreates a Tumblr post with a link to the current web page.
Custom targetThe URL must be typed in the "Target URL" control.
Creates a Tumblr post with a link to specified URL.
New in version 28
WhatsApp
The pageCreates a WhatsApp message with a link to the current page.
Custom targetThe URL must be typed in the "Target URL" control.
Creates a WhatsApp message with a link to the specified URL.

The "Destination" field is used to select the display mode of the connection and input window on the social network.
Action destination
If no destination is chosen for the action, the action is performed in the default destination defined for the current page.
The possible destinations of an action via a Button control are as follows:
New browser (_blank):
Displays the result in a new browser window.
New browser
Current frame (_self):
Displays the result in the same frame.
Current frame
Parent frame (_parent):
Displays the result in the parent frame (case of nested framesets).
Parent frame
Current browser (_top):
Displays the result in the current page of the browser (without frames).
Current browser
Other frames of the frameset (if the page belongs to a frameset):
Displays the result in a specific frame.
iFrame control of the page (if the page contains at least one iFrame control):
Displays the result in an iFrame control.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment