Difference between revisions of "JDocument::addScript"
From Joomla! Documentation
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JDocument::addScript|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JDocument::addScript|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public function addScript ( |
+ | $url | ||
+ | $type="text/javascript" | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 27: | Line 29: | ||
|string | |string | ||
|"text/javascript" | |"text/javascript" | ||
− | |Type of script. Defaults to 'text/javascript' | + | |Type of script. Defaults to 'text/javascript' |
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' | |
− | + | * '''Defined''' on line 402 of libraries/joomla/document/document.php | |
− | |||
− | libraries/joomla/document/document.php | ||
− | |||
− | |||
===See also=== | ===See also=== | ||
+ | * {{JVer|11.1}} '''JDocument::addScript source code''' on [[jplatform:document/document.php#cl-394|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[JDocument/11.1|JDocument]] | ||
+ | * {{JVer|11.1}} Subpackage [[Subpackage_Document/11.1|Document]] | ||
+ | * [[JDocument::addScript|Other versions of JDocument::addScript]] | ||
+ | {{SeeAlso:JDocument::addScript}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JDocument::addScript|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JDocument::addScript|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 51: | Line 51: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JDocument]][[Category:JDocument::addScript]]</noinclude> | <noinclude>[[Category:JDocument]][[Category:JDocument::addScript]]</noinclude> |
Revision as of 20:45, 27 April 2011
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JDocument::addScript[edit]
Description[edit]
Adds a linked script to the page.
Template:Description:JDocument::addScript [Edit Descripton]
public function addScript (
$url
$type="text/javascript"
)
Parameter | Type | Default | Description |
---|---|---|---|
$url | string | URL to the linked script | |
$type | string | "text/javascript" | Type of script. Defaults to 'text/javascript' |
- Returns
- Defined on line 402 of libraries/joomla/document/document.php
See also[edit]
- JDocument::addScript source code on BitBucket
- Class JDocument
- Subpackage Document
- Other versions of JDocument::addScript
Template:SeeAlso:JDocument::addScript [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />