iframe
There are two iframes inside. I want to ask now. There is a save function in the a.php page. I want to save the data and then query the data from the database and display it on the b.php page. How should I operate it? To put it bluntly Now, if I click save, how can I refresh the b.php page above? ? ?
Heroes help.
Reply to the discussion (solution)
My idea is: set src and add timestamp to uri
ps: I am doing jsp development...
Write in a.php
In a.php write
Hello, I just tried your method, and the effect is that the a.php page is directly refreshed and displayed on the b.php page
The a and b pages are displayed the same, and they are displayed after manual refresh. Respective pages
After clicking save
Doesn’t page a need to be refreshed?
So page a should bring the js code to refresh page b
php
if(submission successful){
?>
<script> <br> window.onload=function(){ <br> var subWeb=parent.document.getElementById('b') ; <br> subWeb.src='b.php'; <br> } <br> ; </script>
}
?>
in a.php Add a code similar to this to the page
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn