xo::Page proc requireJS (public)

 xo::Page[i] requireJS 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)  1
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: