April 25,2002
After looking all over the net to no avail, I was motivated to make this simple hack for remotely targeting a single frame to load but then I decided to take it further, and rewrote the entire script.
This action was originally inspired by Target2Frames, but it is now completely original. As far as I know, it will work for Golive 4 to 6, but I make no guarantees.
What this script does, is when the page loads will first check to make sure that this frame isn't the parent frame (forcing to load into it's frameset if it does) then directs another frame remotely to re-load or load a new page. How is this usefull? It is better than the Target2Frames action in that you no longer need to remember which two frames to control with a respective link. It basically is great for 3 frame web sites (navigation/subnavigation/content) where it creates a parent/child relationship with lets say your content/subnavigation frames. I know, it's kind of hard to explain it, but you'll just have to try it and make up your mind or wait months later when you need this feature :-)
Installation & Instructions:
Just drop this .action file into your link folder in your action folder of your GoLive application folder. To use it, just create a head action, select onLoad, and fill in the parent Frame, Frame name to control and URL to load into that frame name.... That's it.
New in this version:
a) re-written and more streamlined code
b) New Force Frame check (way better smaller code and more efficient than the one that comes with GoLive)
c) Now has conditional statements, checks for correct locations and DOM (document object model). If you don't know what that does, don't worry its a good thing and makes your webpage more efficient.
This is completely freeware, but I am always open to feedback
Requires Adobe GoLive
Click here for the .sit version (9k) or the .zip version (6k)
Version History:
2.1 Rewritten again and new features
2.0 Completely rewritten with new features
1.0.1 Corrected an internal linking error.
1.0 My first attempt at modifying the Target2Frames action
I make no claims or hold any responsibility for how this action script works for you. I originally hacked a script so that I can get a remote frame controlled from another by using a head action and onLoad parameter. This can be done the same way without this action by using the Target2Frames action, where I use a '#' for my second link however this new rewritten script has history advantages and is far more elegant than the original Target2Frames action.
Feedback can be sent to terrylam@mac.com