glFusion Wiki

Site Tools


glfusion:development:api:output_class:addlinkscript

outputHandler::addLinkScript

(glFusion SVN)

addLinkScript – Add a javascript source to a page

Description

void addLinkScript($href, $priority, $mime)

This adds a javascript source file to a page - The URL should not have the <link> attribute.

Parameters

href

The URL to the javascript file.

priority

The load priority of the CSS data.  Options are:

  * HEADER_PRIO_VERYHIGH
  * HEADER_PRIO_HIGH
  * HEADER_PRIO_NORMAL
  * HEADER_PRIO_LOW
  * HEADER_PRIO_VERYLOW

Items with HEADER_PRIO_VERYHIGH are sent to the browser 
before those with HEADER_PRIO_HIGH…

The default value is HEADER_PRIO_NORMAL.

mime

The mime type of the stylesheet, 'text/javascript' used 
if no other type passed.

Return Value

No value is returned.

Example

Notes

See Also

glfusion/development/api/output_class/addlinkscript.txt · Last modified: 2017/04/12 21:15 (external edit)

Page Tools