Hello, I have a question and I would like to ask your help. Well, I'll try to explain more or less the problem (the names I'm going to quote is just for example). Imagine that I have a file called "main.php", hence within this file there are two Iframes:
I had tried it that way, but unfortunately it did not work:
window.parent.$('#iframe-sistema').location.reload(true);
Just to clarify. The "iframe1.php" would be an iframe of data listing that comes from the database, that when clicking delete, it will open the "iframe2.php" in modal format (or fancyBox, popup, etc) that will ask if I want to delete that record.
After confirming the deletion, this same iframe (the "iframe2.php") will display a message if everything has happened correctly and after pressing the "ok" button, it will close itself and reload "iframe1.php" to show the records that were left after deleting a record.
I know that for some this may seem like an overuse of iframe, but the point is that this is a system that will be well modular, where the use of code has to be reusable so that there is no code repetition and consequently end up generating a heavy and difficult to maintain system. If anyone also knows an alternative solution for using iframes, I appreciate it. = D Note: (I use the load () function of Jquery in some parts of this system, but I do not know if this situation can work).