D
Da Costa Gomez
Hi all,
I've been eluded the last couple of *days* on the onload mystery within
the frame and function context.
Problem is as follows:
- frameset with two frames. One called scripts and the other called main
- scripts carries a bunch of js functions rechable via
parent.scripts.functioName()
- Main carries the html page that utilizes some functions
All is well until I start using the onload event.
Situation:
1. Main uses an onclick that calls a startFunction() which loads a page
back into main.
2. Since I want this new page to be loaded *before* I go into the next
function I figured setting parent.main.onload = function2bCalled whilst
going into the startFunction() would do the trick.
Not so!! It sets the parent.main.onload allright but after
parent.main.location.href="newPage.html" it does NOT go into
function2bCalled().
Does anybody have a clue as to what is going on here? I'm nearing my
gaga point.
TIA,
Fermin DCG
I've been eluded the last couple of *days* on the onload mystery within
the frame and function context.
Problem is as follows:
- frameset with two frames. One called scripts and the other called main
- scripts carries a bunch of js functions rechable via
parent.scripts.functioName()
- Main carries the html page that utilizes some functions
All is well until I start using the onload event.
Situation:
1. Main uses an onclick that calls a startFunction() which loads a page
back into main.
2. Since I want this new page to be loaded *before* I go into the next
function I figured setting parent.main.onload = function2bCalled whilst
going into the startFunction() would do the trick.
Not so!! It sets the parent.main.onload allright but after
parent.main.location.href="newPage.html" it does NOT go into
function2bCalled().
Does anybody have a clue as to what is going on here? I'm nearing my
gaga point.
TIA,
Fermin DCG