guides:o4w:o4w_api:o4wplugin

O4WPlugIn routine

The web framework O4W uses allows "plugins" to be specified for client-side functions.

O4WPlugIn(id, functionName, options)

The function has the following parameters:

ParameterDescription
idThe name of the O4W control (display element or input control) which should be "attached" to the plugin.
functionNameThe name of the plugin function to invoke.
optionsAny options that you wish to pass to the plugin.

Note that most plugins require an additional script to be added to your web page (see the O4WScript function), and possibly style sheets (see the O4WStyleSheet function).

* To apply the jQuery "TableSorter" plugin to a table named RESULTS:

O4WScript("/weboi/O4W/jquery.tablesorter.min.js")                         

O4WScript("/weboi/O4W/jquery.tablesorter.pager.js")                       

O4WStyleSheet("/weboi/O4W/style.css")                                     

O4WPlugIn("RESULTS", "tablesorter", "{widthFixed: true, widgets: ['zebra']}" )
 
 
  • guides/o4w/o4w_api/o4wplugin.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1