Trying to figure this out. I understand the blocks as outlined in the book
http://book.cakephp.org/2.0/en/views.html#using-blocks-for-script-and-css-fi les Simply add the scripts you need specific for that page and it gets places in the layout where you "fetch". Problem is when your requesting that page via ajax there is no layout. LAYOUT.CTP : <....> <css scripts> <?php echo $this->fetch('content');?> <?php echo $this->fetch('js');?> <...> If you have anything js related / jQuery dependant and you have the code in the view it gets placed in fetch('content') before the scripts are loaded resulting in $ is not defined / not a function when loading the view via ajax. What is the work around for these circumstances? Am I missing something? Thanks, Dave -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.