By default, the position parameter in registerScriptFile method in CClientScript is always self::POS_HEAD.
The snippet will return the correct view content and script content without including the layout and jquery core script when you do an ajax request. But it will break once you start using any of CJui* widget because the registerScriptFile in CJuiWidget load script file onto the end. When
Is there a better way? I like to be able to handle both ajax and non-ajax transparently.
FireShot Pro capture #034 - '' - .png (27.12K)
Number of downloads: 32