xo::Page proc requireJS (public)
xo::PagerequireJS name
Defined in /var/www/openacs/packages/xotcl-core/tcl/30-widget-procs.tcl
Register a JavaScript URL or inline statements for the page head. Repeated registrations retain their first position.
- Parameters:
- name (required)
- Script URL, or inline JavaScript containing a semicolon.
- Testcases:
- path_resolve
Source code: if {![info exists ::_xo_need_js($name)]} {lappend ::_xo_js_order $name} set ::_xo_need_js($name) 1XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)