M Mello
9 Sep 2009, 2:40 PM
Hello,
I'm new to ExtJS (and JS), and have been handed a misbehaving ExtJS 1.1.1 application. It only works in IE 6/7/8, and is misbehaving in IE 7/8 only (hint?). I have been using QuickTest Pro and IE Developer Tools to debug it.
The app dynamically creates and loads pieces for a webpage from extJS (and homemade) parts, then makes the page visible using an onload() event. It has frames, iframes, tons of DIVs, etc.
However, once in about 100 times, the page doesn't become visible. I see no JS errors (or at least the debugger doesn't tell me about them), and QTP tells me that the objects that I am looking for on the page are actually there. This tells me that the only thing left to occur is the "make visible" command. (But, where did my thread go? Oh, here it is ...)
The other thing I noticed was that when this problem occurs (and only when this problem occurs), there is a thread running forever in extJS code. I can pause it in the developer tools debugger, and it is always in the startInterval() of yui-utilities.js. I noticed that in a few minutes it ran 3500 times, yet nothing changed on the page. Sounds like an infinite loop to me!
However, that thread doesn't seem to have a stack trace (probably due to being called by setInterval()?), and so I can't tell what method it was called from.
Any ideas?
Anybody know what startInterval() is used for?
I actually think this is caused by some kind of race condition. I notice that sometimes some "parts" of this app are not loaded when the app thinks they should be. However, it is really hard to debug when it only happens once in a 100 clicks.
Thanks so much for any help. I have been working on this issue for the last week and am running out of ideas!
-- Matt
I'm new to ExtJS (and JS), and have been handed a misbehaving ExtJS 1.1.1 application. It only works in IE 6/7/8, and is misbehaving in IE 7/8 only (hint?). I have been using QuickTest Pro and IE Developer Tools to debug it.
The app dynamically creates and loads pieces for a webpage from extJS (and homemade) parts, then makes the page visible using an onload() event. It has frames, iframes, tons of DIVs, etc.
However, once in about 100 times, the page doesn't become visible. I see no JS errors (or at least the debugger doesn't tell me about them), and QTP tells me that the objects that I am looking for on the page are actually there. This tells me that the only thing left to occur is the "make visible" command. (But, where did my thread go? Oh, here it is ...)
The other thing I noticed was that when this problem occurs (and only when this problem occurs), there is a thread running forever in extJS code. I can pause it in the developer tools debugger, and it is always in the startInterval() of yui-utilities.js. I noticed that in a few minutes it ran 3500 times, yet nothing changed on the page. Sounds like an infinite loop to me!
However, that thread doesn't seem to have a stack trace (probably due to being called by setInterval()?), and so I can't tell what method it was called from.
Any ideas?
Anybody know what startInterval() is used for?
I actually think this is caused by some kind of race condition. I notice that sometimes some "parts" of this app are not loaded when the app thinks they should be. However, it is really hard to debug when it only happens once in a 100 clicks.
Thanks so much for any help. I have been working on this issue for the last week and am running out of ideas!
-- Matt