Is that good practise to do with javascript that references page
specific element ids?

On Jun 1, 5:13 pm, Gábor Fási <[email protected]> wrote:
> Put it in the global js folder, and use the modules view.yml to
> include it in the templates that need it.
>
> On Mon, Jun 1, 2009 at 18:01, Mark Smith
>
> <[email protected]> wrote:
>
> > If I am writing some page specific javascript where should I put it?
>
> > The way I see it I have 3 options:
>
> > 1) Embed it in the page template (feels very hacky)
>
> > 2) Stick it in a global .js and load it every time regardless. (could
> > cause problems and isn't really scalable)
>
> > 3) Put it in its own .js file in the web folder and add it to the view
> > (again seems like it would be hard to manage, but feels slightly less
> > evil than the first 2 options)
>
> > Are there other options I haven't considered?
>
> > What do you do?
>
> > Thanks
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to