lesliej
05-25-2003, 07:05 PM
Attached is a diagram of all the nested frames and framesets for a website. As you can see, there are numerous children, grand-children and cousins.
There are two reasons it is constructed this way:
1. To limit the time to download only the necessary graphic elements that change with various actions.
2. To keep elements aligned in a consistent manner for atleast most common browsers and versions.
On the diagram, the blocks that are shaded solid are basically framesets that exist only to contain another frameset.
What I have been trying to do (and after trying literally hundreds of different ways to do it) is the following:
A. onClick within "f2" should trigger these actions:
1. Load new location.href into "f4"
2. Change the background image in "f0", "f3", "f5" and "f6"
B. onClick within "f9" should trigger these actions:
1. Load new location.href into "f4"
2. Change the background image in "f0", "f3", "f5" and "f6"
3. Change the background image in itself
C. Same actions is needed for clicks occuring in "f10" thru "f20" (although not necessary the same locations or images get loaded).
D. onClick in "f7" and "f8" are basically the same as B and C but with one additional complexity: These are Forward/Backward buttons that need to:
1. Get the current location.href in "f4" at time they are clicked on.
2. Apply formula to know which new location should be loaded into "f4"
3. Lad the new location into "f4".
4. Look up which background images are to be loaded into f0,f3,f5, f6
5. Swap those backgrounds.
6. Look up which of the one of the backgrounds needs to be swapped (this will apply only to one of the frames from "f10" thru "f20", which is based upon whatever is loaded into "f4".)
EEEK! It sounds so convoluted but what the user ends up seeing is not particularly fancy but it is clean and coordinated and I really hate to have to dumb down my intentions. My problem has been in getting objects and scripts to be recognized from one frame to the next and I gather I need a better way to address these objects and/or place my scripts in different locations. I've tried using external scripts, scripts just in the parent frame, scripts in each of the child frames, and every other combination I can think of to create local and global variables. Any hints would be GREATLY appreciated and I've got my site temporarly off-line until I can clear this up.
:confused:
There are two reasons it is constructed this way:
1. To limit the time to download only the necessary graphic elements that change with various actions.
2. To keep elements aligned in a consistent manner for atleast most common browsers and versions.
On the diagram, the blocks that are shaded solid are basically framesets that exist only to contain another frameset.
What I have been trying to do (and after trying literally hundreds of different ways to do it) is the following:
A. onClick within "f2" should trigger these actions:
1. Load new location.href into "f4"
2. Change the background image in "f0", "f3", "f5" and "f6"
B. onClick within "f9" should trigger these actions:
1. Load new location.href into "f4"
2. Change the background image in "f0", "f3", "f5" and "f6"
3. Change the background image in itself
C. Same actions is needed for clicks occuring in "f10" thru "f20" (although not necessary the same locations or images get loaded).
D. onClick in "f7" and "f8" are basically the same as B and C but with one additional complexity: These are Forward/Backward buttons that need to:
1. Get the current location.href in "f4" at time they are clicked on.
2. Apply formula to know which new location should be loaded into "f4"
3. Lad the new location into "f4".
4. Look up which background images are to be loaded into f0,f3,f5, f6
5. Swap those backgrounds.
6. Look up which of the one of the backgrounds needs to be swapped (this will apply only to one of the frames from "f10" thru "f20", which is based upon whatever is loaded into "f4".)
EEEK! It sounds so convoluted but what the user ends up seeing is not particularly fancy but it is clean and coordinated and I really hate to have to dumb down my intentions. My problem has been in getting objects and scripts to be recognized from one frame to the next and I gather I need a better way to address these objects and/or place my scripts in different locations. I've tried using external scripts, scripts just in the parent frame, scripts in each of the child frames, and every other combination I can think of to create local and global variables. Any hints would be GREATLY appreciated and I've got my site temporarly off-line until I can clear this up.
:confused: