Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- calling & defining functions using funcName() vs. window['funcName']()


sssweb - 4:28 pm on Jan 8, 2013 (gmt 0)


It gets tricky if I have one series of text effect functions in one file, and a series of different functions in another file, and the script alternates between the two types of text effect. Then there's a chicken & egg setup where each must go before the other at different times.

As of now though, that's hypothetical. In the vast majority of cases, the initial trigger is the slideshow, which is in the ready(), and doesn't fire until after ALL the globals load -- so it shouldn't be a problem. I'll just have to keep an eye out if the other situation comes up.


Thread source:: http://www.webmasterworld.com/javascript/4533285.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com