.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Programming
General Programming Help others and get yourself helped here!

Reply
 
Thread Tools
Acessing functions across frames
Old
  (#1)
Brainz
Member
 
Brainz's Avatar
 
Status: Offline
Posts: 270
Join Date: Jun 2004
Location: Nottingham, UK
Default Acessing functions across frames - 22-05-2006

right... here goes. Let me know if this makes any sense.

I've got a frameset containing two frames:
Code:
<frameset cols=200,*>
<frame name=contents src=contents.htm>
<frame name=main src=indexmain.htm>
</frameset>
Contents.htm contains code culled from the Internet Explorer Tip of the Day (find it with the windows search: tip.htm), that shows or hides a subsection, contained in a <div>, when a user selects an anchor item in a list, using the style property display (is property the correct word?)
So, state as loaded:
Code:
o Item 1
o Item 2
o Item 3
User clicks item 2:
Code:
o Item 1
o Item 2
   o Item a
   o Item b
o Item 3
Then, user clicks item 3:
Code:
o Item 1
o Item 2
o Item 3
   o Item c
   o Item d
Each item is also a link with target=main.

All well and good, until someone clicks the back button. The Main frame goes to the previous page (that referenced by Item 2), but the contents frame stays in the same state, so the submenus no longer match.

What I want to know is if there is some way of calling the function in the document in the contents frame, using the onload event of the Main document's Body tag.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com