Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
FormAPI init function
JamJamT
While going through the TeamSite userscript examples I noticed that the init() call was performed at the bottom of all the scripts. I’ve used this call at the top of the script without any problems. Is there any technical reason why the call should be at the bottom or is it just developer preference?
// Call the initialization routine on load.
init();
TS 5.5.2 SP1
Win 2K
Find more posts tagged with
Comments
Adam Stoller
developer preference - doens't really matter where it is - or for that matter what it's called (i.e. you can call it 'init' or 'start', or 'main', etc.) just as long as there is one entry point into the initialization of the code.
--fish
(Interwoven Senior Technical Consultant)