Board Logo

another frame problems(frame synchronization)
jimdy - 8/6/2003 at 02:39 PM

The menu gives an error when I used in nested frames(I'd think it happens in simple frame setting too). I belive its because some frame finish loading before the others. I don't know which frame has to load first. I tried to use settimeout() javascript function to change the loading order but I havn't got it to work yet. It seems to me the frame stops loading when it encounters a javascript error.


jimdy - 8/6/2003 at 05:26 PM

I believe this can be solved with some javascript to force frame loading sequence. However that would be ugly, are there any other way to do it?


juhaszgabor - 9/18/2003 at 01:26 PM

Yes,

I have the same problem and I think
it's wrong in Tigra Menu Gold.

G


juhaszgabor - 9/18/2003 at 04:01 PM

Hi !

Frame synchronization:

Before loading menuframe (it contains menu), you have to load it:

example:

<SCRIPT language=JavaScript>

function start()
{
frameset = [['frame_menu'], 'frame_main.frame_left','frame_main.frame_right']]


if (checkLoading(frameset))
{
document.location="menuframe.html"
}
else
{
setTimeout(start,500)
}
}


/**/function checkLoading(frameset)
{
var ok=true;

try
{
for(t in frameset)
{
for(i in frameset[t])
{
if (!eval('parent.'+frameset[t][i]).loaded)
{
throw ReferenceError;
}
}
}
}
catch(e) { ok=false; }

return ok;
}

start();

loaded=true

</SCRIPT>

and insert "loaded=true" into the end of each frame.

G


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/