How to gain reference to the Dialog from Child Page
Here's my scenario:
1) I've got a div on Page A.
2) When an event happens (whatever I define, a click, whatever), I do a div.Dialog, set its properties and open it
3) The data inside is returned from an async .ajax call that grabs the html data from a url and appends it to the div's innerHTML by doing a .html(data) on the dialog, so it's essentially loading a PageB inside the dialog that pops up.
My question: In Page B (the content inside this dialog), how do I reference the parent dialog object, so I can do some things to it? For instance in Page B's mark-up, there is a button and when clicked I need to close the entire (parent) dialog.