Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8734

How to communicate an event from a sub view back to the parent view?

$
0
0

In a previous discussion I asked about how to swap out 2 separate areas in my application on the same page.

A poster (I think it was Andreas) suggested instead of using OverlayContainer (which either relies on a Shell or covers up the entire iFrame which was not good since I can't cover up a banner) that I just do this in 2 DIV's.

So I have one XML view that contains these 2 DIV's. The first DIV is the main one.

In the second DIV I was able to "include" another XML view (using the XMLView tag and giving it the view name) which is pretty cool.

The only thing is that in that second DIV's XML view there is a close button and I need to be able send an event from that view's controller back to the first DIV's controller so it can show the first DIV and hide the second DIV.

 

I tried to access them by doing this in the second DIV's controller but it did not work:

this.getView().getParent().byId("firstDIV");

 

Thanks,

Erich


Viewing all articles
Browse latest Browse all 8734

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>