PHP 클래스 Prado\Web\UI\ActiveControls\TActiveClientScript

This is the active counterpart of the {@link TClientScript} class. TActiveClientScript has the ability to render itself on ajax callbacks. This means that every variable or function declared in javascript code will be available to the page. Beware that when rendered on normal (postback) or ajax callbacks, some javascript code won't behave in the same way. When rendered as part of a normal/postback response, scripts will execute instantly where they are in the page and in a synchronous fashion. Instead, when they are rendered as part of a callback response, they will be executed when all DOM modifications are complete and any dynamic script file includes are loaded, out-of-band and practically all blocks at once, regardless of where they actually occour in the original template/markup code. This can potentially hurt compatibility and graceful fallback.
부터: 3.2
상속: extends Prado\Web\UI\WebControls\TClientScript
파일 보기 프로젝트 열기: pradosoft/prado

보호된 메소드들

메소드 설명
renderCustomScript ( $writer ) Registers the body content as javascript.
renderCustomScriptFile ( $writer ) Renders the custom script file.

메소드 상세

renderCustomScript() 보호된 메소드

Registers the body content as javascript.
protected renderCustomScript ( $writer )

renderCustomScriptFile() 보호된 메소드

Renders the custom script file.
protected renderCustomScriptFile ( $writer )