Forum Moderators: open

Message Too Old, No Replies

Passing data among frames

         

tesla

10:56 pm on May 19, 2002 (gmt 0)

10+ Year Member




I have a collection of three frames. often when an action occurs in one frame all three frames must be updated. However, I have a bunch of data that I need to send to each frame when they are updated. Currently, I'm using javascript to cause the update of the other frames, and I send the data along with the page to load into the frame"

<a href="f1.asp?v1=data" target="_self" onclick="manyframes()"></a>

function manyframes()
{
parent.f2.location='f2.asp?v1=data'
parent.f3.location='f3.asp?v1=data'
}
Where "v1=data" is actaully a very long collection of data and variables.

Is there a better way to pass data, short of stuffing the data in a database?
Often, the other pages don't visually change, just their "state" is updated. Any Ideas?

Lisa

2:10 am on May 20, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



yeah, don't use frames. I have never seen a case where frames are perferred. You can include other pages with ASP. Just include them inside tables and bam. You have the same site except no frames. Plus now search engines can crawl it better. And people can bookmark it better. A win win for everyone.

Frames bad. :( includes good. :)

eeblet

1:58 pm on May 23, 2002 (gmt 0)



In this case, sounds like frames aren't the way to go. But I have to differ with the "frames are always bad" attitude.... If you have a simple, static leftnav and lots of different pages or services and a very clean design, I don't see why you wouldn't use frames!