PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • How to proceed?
  • Including Javascript files (.js)
  • Including external resources in the site
  • Automatic detection of encoding
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
Including Javascript files or a Web resource
Overview
WEBDEV allows you to include Javascript files or external resources in a WEBDEV project. These files can:
  • be included at project level or at page level.
  • be found in the _WEB directory of the site or be a file external to the site
  • be in a specific format (ISO, UTF8, ...).
How to proceed?

Including Javascript files (.js)

You have the ability to include one or more Javascript files in a site or in a page (*.js). These files will be used by the generated HTML pages. These files must be found in the "<ProjectName>_WEB" directory of the site.
To include a Javascript file in a page:
  1. Display the page description ("Page .. Page description").Display the description of the page: on the "Page" pane, in the "Description" group, click "Description".
  2. Select the "Advanced" tab.
  3. Select the "Javascript" tab.
  4. Click the "Add" button and select the path of the Javascript file.
  5. Select (if necessary) the requested encoding. If the encoding corresponds to "<Not defined>", the encoding is automatically detected.
  6. Validate.
To include a Javascript file in the project:
  1. Display the project description ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Select the "Advanced" tab.
  3. Click the "Additional Javascript files (.js)" button.
  4. Click the "Add" button and select the path of the Javascript file.
  5. Select (if necessary) the requested encoding. If the encoding corresponds to "<Not defined>", the encoding is automatically detected.
  6. Validate.

Including external resources in the site

Including external resources in the site is used to include the interface files (programming interface) proposed by the external services (Web API) on the WEB. This gives you the ability to interface with these external services in browser code.
To include an external resource in a page:
  1. Display the page description ("Page .. Page description").Display the description of the page: on the "Page" pane, in the "Description" group, click "Description".
  2. Select the "Advanced" tab.
  3. Select the "Javascript" tab.
  4. Click the "Add a Web resource" button and specify the address of the requested Web resource.
  5. Select (if necessary) the requested encoding. If the encoding corresponds to "<Not defined>", the encoding is automatically detected.
  6. Validate.
To include an external resource in the project:
  1. Display the project description ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Select the "Advanced" tab.
  3. Click the "Additional Javascript files (.js)" button.
  4. Click the "Add a Web resource" button and specify the address of the requested Web resource.
  5. Select (if necessary) the requested encoding. If the encoding corresponds to "<Not defined>", the encoding is automatically detected.
  6. Validate.

Automatic detection of encoding

If the encoding corresponds to "<Not defined>", the encoding is automatically detected:
  • case of a Web reference: the server is interrogated. The encoding is supplied by the server.
  • case of a file reference: if the file is in UTF8, the encoding is automatically switched to UTF8.
Minimum required version
  • Version 14
Comments
Click [Add] to post a comment