[Proto-Scripty] Re: execution order in IE

2009-09-06 Thread T.J. Crowder
*IN*teresting. Thanks for posting back, JoJo. -- T.J. On Sep 6, 6:14 am, JoJo tokyot...@gmail.com wrote: I wanted everyone to know that I was stupid to be testing this in IE8's IE7 backwards compatability mode.  This error never occurs in the real IE7. It's just a warning for everyone,

[Proto-Scripty] Re: execution order in IE

2009-09-05 Thread JoJo
I wanted everyone to know that I was stupid to be testing this in IE8's IE7 backwards compatability mode. This error never occurs in the real IE7. It's just a warning for everyone, never use IE8's backwards mode when web designing. On Sep 4, 2:22 pm, T.J. Crowder t...@crowdersoftware.com wrote:

[Proto-Scripty] Re: execution order in IE

2009-09-04 Thread JoJo
Hi TJ, This is the simple script which will say MYAPP.class1 is null or not an object - Line 33 about 25% of the time on IE8 in IE7-compatability- mode. You must hit refresh a few times and then click the button to see the error. Maybe we need to find out what makes IE7 and 6's JS engine

[Proto-Scripty] Re: execution order in IE

2009-09-04 Thread JoJo
So I did quite a lot of tests with the above script. Whenever the error occurs, the Event.observe was never run. You can stick other code in that event, and it will not run. Now that I'm testing on another computer, it seems to only fail 10% of the time on IE8 in IE7 mode. On Sep 4, 10:01 am,

[Proto-Scripty] Re: execution order in IE

2009-09-03 Thread Alex McAuley
If you need to garuntee that a variable,function or method exists i would always wait until the dom is ready or in each function that gets called test the function,variable or method exists else timeout untill it does Alex Mcauley http://www.thevacancymarket.com - Original Message -

[Proto-Scripty] Re: execution order in IE

2009-09-03 Thread DJ Mangus
See this article: http://proto-scripty.wikidot.com/prototype:how-to-load-scripts-dynamically On Thu, Sep 3, 2009 at 9:25 AM, JoJo tokyot...@gmail.com wrote: Instead of loading JS in the head, how do I do includes like virtually all other languages? Isn't Scriptaculous loading Effects.js and

[Proto-Scripty] Re: execution order in IE

2009-09-03 Thread JoJo
^ great article! Now I have another question. Here is my new workflow in an attempt to execute files in the correct order across all browsers. It works in IE8, but not in IE7. In IE7 I get an error saying object expected on line 2 of main.js. This is not very descriptive; what does it mean?

[Proto-Scripty] Re: execution order in IE

2009-09-03 Thread Alex McAuley
errors on my web desktop Alex Mcauley http://www.thevacancymarket.com - Original Message - From: JoJo tokyot...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Thursday, September 03, 2009 7:40 PM Subject: [Proto-Scripty] Re: execution order in IE

[Proto-Scripty] Re: execution order in IE

2009-09-03 Thread JoJo
to fix similar errors on my web desktop Alex Mcauleyhttp://www.thevacancymarket.com - Original Message - From: JoJo tokyot...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Thursday, September 03, 2009 7:40 PM Subject: [Proto-Scripty] Re