I’m using Fancybox to load and Iframe with a form. After I post it, onsubmit calls “return onSubmitForm()“
<script type="text/javascript">
function onSubmitForm() {
parent.jQuery.fancybox.close();
window.parent.location.reload(true);
}
</script>
So Php/Smarty is loading the dynamic content OK in my database. I can also close the Iframe. BUT, after reloading the parent, it’s dynamic content is not updated.
I have doing several tests and it only works occasionally (1 in 10). The previous content gets sticky.
I also started using “nocache” or “caching=0” (for PHP/Smarty variables). So far it doesn’t help.
If I reload manually the browser, it works.
Thanks!
Diego
Inside the iframe (with the form) just try closing the box
…then, in the parent page (from where you called fancybox) add this API option to your script… something like