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


sssweb - 6:20 pm on Jan 7, 2013 (gmt 0)


Okay, I just discovered that if I delete noConflict() AND var $ = jQuery; from all files, everything works fine. (This is the same setup that gives the "strange" alert value for $: "function(a,b){return new e.fn.init(a,b,h)}" -- I now see that that's probably just a reference to my jQuery library. I was so surprised by the alert that I didn't notice that the code ran fine after I dismissed the alert.)

Anyway, my question now is how to work around the noConflict(), or should I dump it altogether. I think it's there mainly as a precaution in case I add libraries later, which I don't plan to do as of now.

Or do you see a better solution now that we know what's going on?


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