src/UI/HTML/PageFrame.php
public function addJavaScript( $uri, $type = NULL, $charset = NULL )
	{
		$typeDefault	= 'text/javascript';
		if( isset( $this->metaTags["http-equiv:content-script-type"] ) )
			$typeDefault	= $this->metaTags["http-equiv:content-script-type"]['content'];
		$scriptData	= array(
			'type'		=> $type ? $type : $typeDefault,
			'charset'	=> $charset ? $charset : NULL,
			'src'		=> $uri,
		);
		$this->scripts[]	= $scriptData;
	}
public function addJavaScript( $uri, $type = NULL, $charset = NULL )
	{
		$typeDefault	= 'text/javascript';
		if( isset( $this->metaTags["http-equiv:content-script-type"] ) )
			$typeDefault	= $this->metaTags["http-equiv:content-script-type"]['content'];
		$scriptData	= array(
			'type'		=> $type ? $type : $typeDefault,
			'charset'	=> $charset ? $charset : NULL,
			'src'		=> $uri,
		);
		$this->scripts[]	= $scriptData;
	}
public function addJavaScript ( $ uri , $ type = NULL , $ charset = NULL ) { $ typeDefault = 'text/javascript' ; if ( isset ( $ this -> metaTags [ "http-equiv:content-script-type" ] ) ) $ typeDefault = $ this -> metaTags [ "http-equiv:content-script-type" ] [ 'content' ] ; $ scriptData = array ( 'type' => $ type ? $ type : $ typeDefault , 'charset' => $ charset ? $ charset : NULL , 'src' => $ uri , ) ; $ this -> scripts [ ] = $ scriptData ; }
Adds a Java Script Link to Head.
@access		public
@param		string		$uri			URI to Script
@param		string		$type			MIME Type of Script
@param		string		$charset		Charset of Script
@return		void
Adds a Java Script Link to Head .