[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

Frame interactions

I have 2 frames. Frame 1 is a subclass of Frame. And Frame 2
is a subclass of Frame 1. From Frame 1 I call Frame 2 and hide Frame 1. Now I want to unhide Frame 1 by clicking a button in Frame 2. How would I go about doing this?
0
danzig040297
Asked:
danzig040297
1 Solution
 
majklCommented:
Bring Frame1 to Frame2 by reference.

Constructor for Frame2 Shoud look like this.

Frame1 frame1 ;

Frame2 (Frame1 f1 )
{
  this.frame1 = f1;
}

now you can call frame1.hide(); or frame1.show();


Create Frame2 in Frame1 like this :
Frame2 frame2;

frame2 = new Frame2(this);

here can you do frame2.hide(); ......

Hope This helps.
 
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now