07-12-2012, 10:40 AM
[eluser]dhall[/eluser]
I have put my javascript functions in helper files and then load them in the Controllers where needed.
When I do this though it messes up the formatting on my pages.
If I place the javascript directly inside the <head> tags though does not cause this problem.
I checked the html output in both cases and it looks fine from what I can see.
Any idea why that is?
What is the best way to store your javascript functions?
I have put my javascript functions in helper files and then load them in the Controllers where needed.
When I do this though it messes up the formatting on my pages.
If I place the javascript directly inside the <head> tags though does not cause this problem.
I checked the html output in both cases and it looks fine from what I can see.
Any idea why that is?
What is the best way to store your javascript functions?