ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Miscellaneous WEBDEV functions
  • Directory of images (in browser code)
  • Specifying the directory of images in WLanguage for generating the HTML code
  • Setup
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
FolderWeb (Function)
In french: RépertoireWeb
Returns the relative path of the directory containing:
  • images,
  • JavaScript files,
  • Java applet files,
  • other files accessible from the browser.
This directory corresponds to the <Project Name>_WEB directory. This directory is found both on the development computer and on the deployment computer.
Remark: To get the "<Project name>_WEB" directory, you can use:
Example
WEBDEV - Server codeWindowsLinuxPHPAjax
// HTML control generated programmatically
ImageName is string = "Hello.gif"
HTM_HTMLControl = "<SRC IMG=""/" + FolderWeb() + "/" + ImageName + """>"
WEBDEV - Browser codeWindowsLinuxPHP
// IMG_IMAGE1 is an Image control
// Option checked:
// "Locate the image in the _WEB directory in browser code"
// Modify the image displayed in IMG_IMAGE1
IMG_IMAGE1 = "/Image_Map.gif"
WEBDEV - Browser codeWindowsLinuxPHP
// IMG_IMAGE1 is an Image control
// The option is unchecked:
// "Locate the image in the _WEB directory in browser code"
// Modify the image displayed in IMG_IMAGE1
IMG_IMAGE1 = FolderWeb() + "Image_Map.gif"
Syntax
<Result> = FolderWeb()
<Result>: Character string
Relative path of the directory containing the images, the JavaScript files, ...
WEBDEV - Server code The path does not end with the / character.

WEBDEV - Browser code The path is completed by the / character at the beginning and at the end.
Remarks
WEBDEV - Browser codeWindowsLinuxPHP

Directory of images (in browser code)

By default, "Locate the image in the _WEB directory in browser code" is checked when describing an image. In this case, in browser code, the image is automatically sought in the _WEB directory of the site. No specific code is required.
If "Locate the image in the _WEB directory in the browser code" is unchecked, the full image path must be specified in order to find the image. To do so, use FolderWeb.

Specifying the directory of images in WLanguage for generating the HTML code

FolderWeb can be used to specify the directory of images when generating the HTML code in WLanguage.
If the HTML code must contain references to images or to any other static object (Java or JavaScript file), FolderWeb must be used to localize these files.

Setup

In the setup is performed via physical media, the directory of the data files is specified during the setup.
For a remote setup (FTP), the Internet provider supplies the home directory for the data files and the user supplies the name of the sub-directory in which the data files are installed.
Component: wd290dllexe.dll
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 06/20/2023

Send a report | Local help