Re: Send post data to an iframe opened with shadowbox
I really I'm not sure what you are trying to do but maybe you have to consider if you are designing a correct flow. I'm going to try to put some concepts and maybe that makes you think of some way to do it.
<ul> <li>Think on terms of MVC (model/viewer/controller).</li> <li>Shadowbox is only a view layer library.</li> <li>A post request will be part of the controller, not the view. You send post data (the model) to the server not to an iframe.</li> <li>You process the request on server and you send the response to the browser.</li> </ul>
If you need the response to be opened in a shadowbox you can always do it with the shadowbox API function Shadowbox.open. Maybe with an onload event. (in a $(document).ready, for example).
Or even better I think, just do an ajax post and you will be able to use the response as you wish, including opening it in shadowbox. With jQuery or other do more write less library would not be too much code.