jimdy
Junior Member
Posts: 4
Registered: 7/31/2003
Member Is Offline
|
| posted on 8/6/2003 at 02:39 PM |
|
|
another frame problems(frame synchronization)
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
Junior Member
Posts: 4
Registered: 7/31/2003
Member Is Offline
|
| posted on 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
Junior Member
Posts: 2
Registered: 9/18/2003
Member Is Offline
|
| posted on 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
Junior Member
Posts: 2
Registered: 9/18/2003
Member Is Offline
|
| posted on 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
|
|
|