Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Dreamweaver & Flash

Refresh frames by cjkenworthy
Posted: 20 Sep 02

I have a website with two frames:

Lefthand frame - tollbar, containing a field which keeps track of the number of items in a shopping cart.

Righthand frame - where things are added to the cart/taken away etc, where content changes.

I wanted to update the contents of one frame based on changes in another. Here's how I managed to update the contents of a frame from within another frame:

First of all make sure, if you're using templates, that you are allowed to edit the body tag, or other regions where you might need to add an event property e.g. 'onlick', or 'onload'. I was using a Dreamweaver template for the righthand frame where the content was, so it wouldn't let me set 'onload' properties in a page based on this template. To fix this, I edited the template and then set the event property in the template itself.


I assigned the event property to the "body" (accessed by selecting it by name in the bottom left of the screen) and then opened up "behaviours" from the "window" menu. Then did a "Call Javascript" and typed in "onLoad" then in the 'javascript to call' entered:


where 'framename' is the name of the target frame to update.
You can put this code on any event and specify which frame to update.

As the template was the basis for all my content frames, when I saved the template it updated all the pages based on this to include this refresh code.

hey presto!

Back to Adobe FAQ Index
Back to Adobe Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close