ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Web-specific functions / Miscellaneous WEBDEV functions
  • Parameters of jQuery function
  • Loading the jQuery libraries
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
jQueryExecute (Function)
In french: jQueryExecute
Runs a JavaScript method of the jQuery library on a page element.
Remarks:
  • jQuery is used to run several chained methods.
  • This function is an advanced feature, requiring a good knowledge of JavaScript and the jQuery library
Example
// Le champ CELL_Carré explose en morceaux avant de disparaître
jQueryExecute(CELL_Carré,"effect","explode")

// Modification de l'opacité du champ LIB_1
jQueryExecute(LIB_1, "fadeTo", "opacity", 0.5)
Syntax
<Result> = jQueryExecute(<Control used> [, <Category>] , <jQuery function> [, <Parameter 1> [... [, <Parameter N>]]])
<Result>: Expected type
Return value of jQuery method called.
<Control used>: Control name
Name of control that will be used in the page.
Note: The "Field can be overlaid" option must be checked for the field ("UI" tab in the control description window).
<Category>: Optional character string
Name of the category of functions in the jQuery library.
<jQuery function>: Character string
Name of jQuery function to run.
Please note: Javascript is case sensitive, so the function name must respect the case used in the jQuery library.
<Parameter 1>: Optional character string
First parameter expected by the jQuery function.
<Parameter N>: Optional character string
Nth parameter expected by the jQuery function.
Remarks

Parameters of jQuery function

If a procedure ("Callback") must be passed as parameter to the jQuery function, the browser procedure must be passed by reference (function name preceded by "&"). For example:
jQueryExecute(BTN_Ajout, "click", &OnAjout)

Loading the jQuery libraries

Several versions are available for the jQuery library. Several JavaScript files can be found in the jQuery library.
Therefore, the additional JavaScript libraries must be loaded. Two methods are available:
  • include the JavaScript load code in the header code of the page.
  • download the JavaScript jQuery libraries on the server and include the JavaScript files in your project or page.
Method 1: To include the loading code in the page:
  1. Display the description window of the page ("Description" in the context menu).
  2. Select the "Advanced" tab.
  3. Select the "HTML" tab.
  4. Copy the following lines of code into the "HTML code added to the page header" area:
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
Please note: When this help page was written, the library versions were 1.9.1 and 1.10.3.. We advise you to check whether these versions are still the current ones.
Method 2: To include Javascript files in your page (after download):
  1. Display the description window of the page ("Description" in the context menu).
  2. Select the "Advanced" tab.
  3. Select the "HTML" tab.
  4. Click the "Add" button and select the necessary JavaScript files (.js). Please note: it is advisable to check which versions are currently in use..
Component: WDJS.DLL
Minimum version required
  • Version 19
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help