PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
FolderWeb (Function)
In French: RépertoireWeb
Returns the path of the directory containing:
  • the images,
  • the Javascript files,
  • the Java applet files,
  • the other files accessible from the browser.
Example
WEBDEV - Server codeWindowsLinuxPHPAjax
// HTML control generated by programming
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.
Components
WEBDEV - Server code wd230dllexe.dll
WEBDEV - Browser code WDJS.DLL
Linux wd230dllexe.so
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment