apply iframe with php
Posted: Fri Aug 06, 2004 9:31 pm
I wish to use iframe with php to apply to my system. Firstly I will talk about what kind of page I wanted. I have a page showing the real time information. It use table to arrange the data, something like stock list. It got a countdown timer to refresh the data after 20 second. It only refresh the data, not reload the page.
From my opinion ( I don’t know correct or not ), it use iframe with php in the page,
Test.html
In execute.php file, it got a countdown timer also, maybe 10 second refresh a time to get the latest data, then post back to test.html without display the data directly. The countdown timer in test.html will refresh the data in the table after 20 second. Maybe add more rows or changing the data.
I already understand the tutorial from viewtopic.php?t=22620&highlight=iframe
The problem is how to apply the above scenario to my system? Use javascript?
But it looks like not suitable to use this kind of matter.
Anyone have face this kind of problem? Any comment can give me?
Thank to all for reply.
From my opinion ( I don’t know correct or not ), it use iframe with php in the page,
Test.html
Code: Select all
<iframe name="testFrame" id="testFrame" scroll="no" src=""></iframe>
<a href="execute.php" target="testFrame">Test it out</a>I already understand the tutorial from viewtopic.php?t=22620&highlight=iframe
The problem is how to apply the above scenario to my system? Use javascript?
Code: Select all
<script language="javascript">
function ValidateAccount()
{
SearchFrame.location.replace("validate.php?SearchField=" + escape(document.myForm.Account.value));
}
function LoadTopFrame(Account, Name, Address)
{
parent.top.myform.Account.value = Account;
parent.top.myform.Name.value = Name;
parent.top.myform.Address.value = Address;
}
</script>Anyone have face this kind of problem? Any comment can give me?
Thank to all for reply.