I have a page that has a second layer with an iframe in it. I have the second layer as an iframe, because it contains a form, and I do not want the entire page to reload when the form is submitted (just the layer/iframe). My question is, once that form is submitted, how can I "update" the main layer/window (through AJAX)? I'm not sure how to reference the main window from the iframe (or reference the iframe from the main window).
And, if you're wondering why I'm using the iframe within the second layer, it's because the form contains an image upload which can't be sent through the xmlhttprequest in an AJAX implementation for security reasons (from what I've learned).
I appreciate any help!
Thanks!