ajax submission to iframe popup

I’m creating a little form, and it submits to another page that just has some basic confirmation info. I’d like it to just popup in a window that they can just click out of afterward.

I’m pretty sure it’s possible because it seems to do it on some pages in the admin area. I’m going to need to do this for a few different things, some submit to the site, one submits to a page on another site.

Could someone give me some direction?


Are there any instructions on how to use the picker?

function(id, target_id, inner_selector, iframe_obj)

What goes in those params?