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


Fotiman - 5:24 pm on Jan 6, 2013 (gmt 0)


Here's what I would suggest. Instead of relying on functions in the global scope, it's better to create your own "namespace" and store your functions within it. That way, you only have 1 object in the global scope, which means less chance for conflicts with other scripts. Then you put all of your methods within this one object.


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