[Javascript] Passing Object Refs to Other Frames

Andrew Gibson andyg at ihug.co.nz
Sat Mar 24 04:46:03 CST 2001


How do we pass refs to other frames btw?

eg, I have a navigation frame, and I want to 
pass a script to another frame, say to make
a layer visible.

on the same page I would just go:

<A href=javascript:showme('one')>Show me</a>

How would I pass the reference to page in another 
frame??

Andrew





 > 
 > Why open a new window and close the old one if you could  open the new
 > page in the old window?
 > 
 > If you used a frameset you could store all the data as you went along.
 > 
 > Pretty sure I must be missing the point here....
 > 
 > 
 > Rodney
 > 
 > Peter Thompson wrote:
 > > 
 > > I have a problem that I've been struggling to
 > > figure out.
 > > 
 > > I'm developing a web-based document control
 > > system.  When the user clicks the Submit button,
 > > my boss wants me to then prompt for all the
 > > approval information.  I created a flowchart in
 > > Visio and this process turns out to be quite
 > > complicated.  It means opening a series of
 > > windows to walk the user through forms which
 > > prompt them for info - approval names, approval
 > > type (Parallel vs. Serial), etc.  There are about
 > > 6 windows that need to be opened in this sequence.
 > > 
 > > As I open the next window, I want to close the
 > > previous.  My challenge is: how to maintain a
 > > handle to the original document?  I need to pass
 > > a reference to this window from window to
 > > window.  That way, I can write data back to the
 > > original document during this process.
 > > 
 > > I just can't figure out how to do it.  If I
 > > create a method in window A that I call from
 > > window B and pass it the original window object,
 > > that would work - but how do I reference that
 > > method in window A?
 > > 
 > > Obviously, I have the window.opener property to
 > > get the previous window reference but once I
 > > close the first "dialog" box,
 > > window.opener.window.opener.... won't work
 > > because I've broken that chain back to the
 > > original document by closing one of the windows.
 > > 
 > > It would look horrible to have to open all these
 > > windows and leave them open until the last step.
 > > If I can't pass a window reference, then is there
 > > some way to hide an open window?  I think I can
 > > use DHTML to change it's z-order and put it
 > > behind the top window, is that correct?
 > 
 > 
 > -- 
 > Shop at ssistant Add-ons and Developer Workshops
 > http://www.aflyingstart.net/addons/
 > STILL PLACES OPEN on Fri 27 April workshop
 > 
 > Courses in April 
 > Mon 23  : Making a Start in E-Commerce with Shop at ssistant
 > Tue 24  : Meeting Business Needs with the Shop at ssistant Classic system
 > Wed 25 : Building Better Shopping Pages with Shop at ssistant Classic
 > 
 > 
 > Booking for these Shop at ssistant Classic courses at 
 > http://www.shopassistant.net/training/  
 > Or call 01256 880770
 > 
 > Rodney Myers
 > Based in Oxford, England
 > Technical Director, Shop at ssistant eCommerce Solutions
 > 
 > _______________________________________________
 > Javascript mailing list
 > Javascript at LaTech.edu
 > http://www.LaTech.edu/mailman/listinfo/javascript
 > 




More information about the Javascript mailing list