His one concern is having javascript included in the middle of HTML isntead of all at the end of the html. This tactic would still insert the javascript in the middle of everything.
On Wed, Nov 3, 2010 at 12:57 PM, Alex Pilon <alex.pi...@gmail.com> wrote: > You could also put that js into external js files and use use_javascript to > have each partial include the related external js file when it loads into > the template. > > > On Wed, Nov 3, 2010 at 05:58, Gareth McCumskey <gmccums...@gmail.com>wrote: > >> Forgot the link: >> http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_sub_slots >> >> On Wed, Nov 3, 2010 at 11:55 AM, JoJo <jojoyangd...@gmail.com> wrote: >> >>> Hello everyone, >>> >>> I have a question not very technical but quite structural. >>> >>> In my modules, I use some partials to complete the layout. And in these >>> partials, I use some javascript functions. So when page loaded, these >>> javascript functions are added in the middle of template. >>> >>> I think that it is not very clean do display js in that way, because >>> normally they should be added between <head></head>, but these js functions >>> are spécificaly for its partials and in several js functions, i need the >>> objects passed from action or component. >>> >>> So can anyone suggest what is the best way to implement these javascript >>> functions please. >>> >>> Thanks in advance. >>> >>> Best Regards, >>> >>> JoJo >>> >>> -- >>> If you want to report a vulnerability issue on symfony, please send it to >>> security at symfony-project.com >>> >>> You received this message because you are subscribed to the Google >>> Groups "symfony users" group. >>> To post to this group, send email to symfony-users@googlegroups.com >>> To unsubscribe from this group, send email to >>> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> >>> For more options, visit this group at >>> http://groups.google.com/group/symfony-users?hl=en >>> >> >> >> >> -- >> Gareth McCumskey >> http://garethmccumskey.blogspot.com >> twitter: @garethmcc >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com >> >> You received this message because you are subscribed to the Google >> Groups "symfony users" group. >> To post to this group, send email to symfony-users@googlegroups.com >> To unsubscribe from this group, send email to >> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en >> > > > > -- > Alex Pilon > (613) 608-1480 > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en