Welcome Guest, Not a member yet? Register   Sign In
javascript and template division
#2

[eluser]mddd[/eluser]
About the division: whatever works for you is right! I don't think there is any one "true solution".

About the scripts: I would put the functions in separate .js files. Then I would tell the 'meta' view (which probably means the 'head' part of your html document) which .js files to load. For instance by passing an array of js filenames.


Messages In This Thread
javascript and template division - by El Forum - 08-20-2010, 04:51 AM
javascript and template division - by El Forum - 08-20-2010, 04:58 AM
javascript and template division - by El Forum - 08-20-2010, 05:31 AM
javascript and template division - by El Forum - 08-20-2010, 05:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB