2 Replies Latest reply on Mar 16, 2007 11:45 AM by Alexander Smirnov

    How does javascript work -- getting not defined errors.

    Andrew Apprentice

      At the beginning of the HEAD tag of all my pages, I have a reference to my global.js file. When I switched over to A4J I just started getting errors like "getEventKey is not defined" from other JS files that appear later in the HEAD than global.js. In this example "getEventKey" is a function declared in global.js. According to the HTML there is no way that that function is not declared and it always worked while using AjaxAnywhere.

      Does A4J handle script tags specially and if so, what may it be doing that the functions in global.js are temporarily undefined during an AJAX call?