Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [RBilger] Advanced Editor buttons crunched into one pile

Quote Reply
Re: [RBilger] Advanced Editor buttons crunched into one pile In reply to
Alright, as a start, open up editor.js (from the "common" template set) and look for a line:

Code:
innerInterval = setInterval("initInnerIFrame()", 100);


It should be on line 51. Change that 100 to something high - 5000. Then try loading the advanced editor. You're going to see nothing - just a blue screen - for a few seconds, but it should appear eventually (the number is milliseconds - so it should be around 5 seconds).

However, seeing a blank screen for 5 seconds is obviously not an option. The point of that change is just to see that it does actually make a difference.

If it does, I think we can fix the problem by making a couple changes further down: Look for:

Code:
var initInterval, toolbars, tb;


it should be just above:

Code:
function toolbarInit () {


Add another variable named 'twice' on to the end, so that it looks like:

Code:
var initInterval, toolbars, tb, twice;


Now, below "function toolbarInit() {" you should see this:

Code:
if (tbs.length < 3)
return;
else
clearInterval(tbInterval);


Change that like so (changes in red):

Code:
if (tbs.length < 3 || twice++ < 1)
return;
else
clearInterval(tbInterval);


What that will do is make it go through an extra interval loop, thus taking another .1 seconds to allow IE to load properly. My best guess on this is that IE is running the code halfway through loading - so the DIV's (there are 3 - each one contains toolbar buttons) have loaded, but not everything in them (the buttons themselves) have loaded.

Something else you could do is change this:

Code:
tbInterval = setInterval("toolbarInit()", 100);


to 150 or 200 instead of 100. That will slow the toolbar initialization timings down a little and hopefully the extra .15 or .2 seconds will be enough for IE to get its act together. You don't want to make these number too high, however, as that leads to a noticeable delay loading the advanced editor.

Let me know if these changes help - I admit they are a bit of a shot in the dark, but from our previous experience with this problem I think it will help.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread Advanced Editor buttons crunched into one pile RBilger 12893 Nov 7, 2002, 6:40 AM
Thread Re: [RBilger] Advanced Editor buttons crunched into one pile
Andy 12500 Nov 7, 2002, 6:45 AM
Thread Re: [Andy] Advanced Editor buttons crunched into one pile
RBilger 12498 Nov 7, 2002, 6:50 AM
Post Re: [RBilger] Advanced Editor buttons crunched into one pile
Boomer 12470 Nov 7, 2002, 8:29 AM
Thread Re: [RBilger] Advanced Editor buttons crunched into one pile
Alex 12469 Nov 8, 2002, 10:34 AM
Thread Re: [Alex] Advanced Editor buttons crunched into one pile
RBilger 12484 Nov 8, 2002, 12:29 PM
Thread Re: [RBilger] Advanced Editor buttons crunched into one pile
Alex 12458 Nov 8, 2002, 12:43 PM
Thread Re: [Alex] Advanced Editor buttons crunched into one pile
Boomer 12453 Nov 8, 2002, 7:28 PM
Thread Re: [Boomer] Advanced Editor buttons crunched into one pile
Alex 12456 Nov 12, 2002, 10:25 AM
Post Re: [Alex] Advanced Editor buttons crunched into one pile
Boomer 12404 Nov 12, 2002, 10:38 AM
Thread Re: [RBilger] Advanced Editor buttons crunched into one pile
Alex 12422 Nov 12, 2002, 10:22 AM
Thread Re: [Alex] Advanced Editor buttons crunched into one pile
RBilger 12497 Nov 12, 2002, 10:46 AM
Post Re: [RBilger] Advanced Editor buttons crunched into one pile
Alex 12412 Nov 12, 2002, 10:47 AM
Thread Re: [RBilger] Advanced Editor buttons crunched into one pile
RBilger 12412 Nov 12, 2002, 10:50 AM
Thread Re: [RBilger] Advanced Editor buttons crunched into one pile
RBilger 12415 Nov 12, 2002, 10:51 AM
Thread Re: [RBilger] Advanced Editor buttons crunched into one pile
RBilger 12393 Nov 12, 2002, 11:55 AM
Thread Re: [RBilger] Advanced Editor buttons crunched into one pile
RBilger 12418 Nov 12, 2002, 3:41 PM
Thread Re: [RBilger] Advanced Editor buttons crunched into one pile
Jagerman 12371 Nov 12, 2002, 6:15 PM
Thread Re: [Jagerman] Advanced Editor buttons crunched into one pile
RBilger 12342 Nov 13, 2002, 5:45 AM
Thread Re: [RBilger] Advanced Editor buttons crunched into one pile
Jagerman 12376 Nov 13, 2002, 7:05 AM
Post Re: [Jagerman] Advanced Editor buttons crunched into one pile
Boomer 12367 Nov 13, 2002, 8:02 AM
Thread Re: [Jagerman] Advanced Editor buttons crunched into one pile
RBilger 12371 Nov 13, 2002, 8:35 AM
Thread Re: [RBilger] Advanced Editor buttons crunched into one pile
Jagerman 12382 Nov 13, 2002, 8:58 AM
Post Post deleted by Boomer
Boomer 12335 Nov 13, 2002, 9:20 AM
Post Post deleted by Boomer
Boomer 12358 Nov 13, 2002, 9:23 AM
Thread Re: [Jagerman] Advanced Editor buttons crunched into one pile
Boomer 3552 Nov 13, 2002, 9:26 AM
Post Re: [Boomer] Advanced Editor buttons crunched into one pile
Boomer 3521 Jan 17, 2003, 9:54 AM
Post Re: [Jagerman] Advanced Editor buttons crunched into one pile
RBilger 3545 Nov 13, 2002, 9:56 AM
Thread Re: [RBilger] Advanced Editor buttons crunched into one pile
joet 3516 Jan 30, 2003, 7:32 AM
Post Re: [joet] Advanced Editor buttons crunched into one pile
joet 3471 Feb 7, 2003, 7:29 AM