From ke1g.nh at gmail.com Thu Jun 23 22:28:03 2011 From: ke1g.nh at gmail.com (Bill Freeman) Date: Thu, 23 Jun 2011 16:28:03 -0400 Subject: [Kss-devel] Odds and ends with IE8 and an old FF w Firebug Message-ID: I'm working on a plone site, tracking down some JavaScript problems that seem to be associated with kukit, and am hoping for some guidance. This is using the kss.core-1.6.1 egg that gets installed on plone-4.0.5, should that be relevant. Problem 1: This is the more important, to us, problem. One must be logged into the plone site to see this problem (thus kss is (trying to be) active). In IE 8 (not in IE 9, FF, Safari) code bound into kukit(-src).js from the effects plugin.js invokes Element.extend(), but Element.extend is undefined at this time. In IE 8, at least, when this bombs, it prevents all further JavaScripts from running, leading to the failure of other custom features on our site, in addition, I presume to kss. It is conceivable that some other JS has gotten deleted from the site. So my first question here is, what is supposed to add the extend method to Element? Or are there other thoughts as to where I should look? Problem 2: ++resource++kukit.js is being delivered with the code from kukit/kukit/utils.js before the code from kukit/kukit/kukit.js. utils.js adds kukit.bootstrap as an event listener for load on window (utils.js line 580). But since kukit/kukit/kukit.js has not been processed yet (coming later in ++resource++kukit.js), kukit.bootstrap is not yet defined. I'm pretty sure that manages to prevent the rest of ++resource++kukit.js from being processed. At least I never hit the breakpoint I've placed on the next executable line after the call to ut.registerEventListener(). So I'd like to know whether the order of the content of ++resource++kukit.js is expected to be some particular order, and if so, how is it intended to be controlled. Or if there is a desired order, what is it? Thanks in advance, Bill From ke1g.nh at gmail.com Thu Jun 23 23:59:41 2011 From: ke1g.nh at gmail.com (Bill Freeman) Date: Thu, 23 Jun 2011 17:59:41 -0400 Subject: [Kss-devel] Odds and ends with IE8 and an old FF w Firebug In-Reply-To: References: Message-ID: Answering problem 2 for myself, the parts are only mis-ordered when using: ++resource++kukit-src.js If I fix the order in concatresource.zcml, problem 2 goes away. I guess that I was supposed to use ++resource++kukit-devel.js to get non-compressed stuff. Bill On Thu, Jun 23, 2011 at 4:28 PM, Bill Freeman wrote: > I'm working on a plone site, tracking down some JavaScript problems > that seem to be associated with kukit, and am hoping for some > guidance. ?This is using the kss.core-1.6.1 egg that gets installed on > plone-4.0.5, should that be relevant. > > Problem 1: > > This is the more important, to us, problem. > > One must be logged into the plone site to see this problem (thus kss > is (trying to be) active). > > In IE 8 (not in IE 9, FF, Safari) code bound into kukit(-src).js from > the effects plugin.js invokes Element.extend(), but Element.extend is > undefined at this time. ?In IE 8, at least, when this bombs, it > prevents all further JavaScripts from running, leading to the failure > of other custom features on our site, in addition, I presume to kss. > > It is conceivable that some other JS has gotten deleted from the site. > ?So my first question here is, what is supposed to add the extend > method to Element? ?Or are there other thoughts as to where I should > look? > > Problem 2: > > ++resource++kukit.js is being delivered with the code from > kukit/kukit/utils.js before the code from kukit/kukit/kukit.js. > utils.js adds kukit.bootstrap as an event listener for load on window > (utils.js line 580). ?But since kukit/kukit/kukit.js has not been > processed yet (coming later in ++resource++kukit.js), kukit.bootstrap > is not yet defined. ?I'm pretty sure that manages to prevent the rest > of ++resource++kukit.js from being processed. ?At least I never hit > the breakpoint I've placed on the next executable line after the call > to ut.registerEventListener(). > > So I'd like to know whether the order of the content of > ++resource++kukit.js is expected to be some particular order, and if > so, how is it intended to be controlled. ?Or if there is a desired > order, what is it? > > Thanks in advance, Bill >