Click here to Skip to main content
15,891,136 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionErr: This is a marker file generated by the precompilation tool, and should not be deleted! Pin
lakshmichawala26-Aug-09 21:03
lakshmichawala26-Aug-09 21:03 
Questioni need to create a form with different userd id and names and then link it to the my sql database and lot more ------------------ need urgent help Pin
sean_198226-Aug-09 1:05
sean_198226-Aug-09 1:05 
AnswerRe: i need to create a form with different userd id and names and then link it to the my sql database and lot more ------------------ need urgent help Pin
kabirbdboy28-Aug-09 6:09
kabirbdboy28-Aug-09 6:09 
GeneralRe: i need to create a form with different userd id and names and then link it to the my sql database and lot more ------------------ need urgent help Pin
fly90431-Aug-09 12:49
fly90431-Aug-09 12:49 
QuestionRefresh iframe Pin
udch24-Aug-09 7:27
udch24-Aug-09 7:27 
AnswerRe: Refresh iframe Pin
fly90424-Aug-09 9:01
fly90424-Aug-09 9:01 
GeneralRe: Refresh iframe Pin
udch25-Aug-09 2:57
udch25-Aug-09 2:57 
GeneralRe: Refresh iframe Pin
fly90425-Aug-09 3:47
fly90425-Aug-09 3:47 
udch wrote:
If it is not possible in php then can you tell how to insert java script function in php for refreshing iframe.


Your statement shows a clear lack of understanding about how HTML, PHP and Javascript work.

In the below example you can see how to use PHP with HTML correctly. You can see that the HTML tags are not written in PHP. The only part of this page that is affected by PHP is the body which will have 'Hello World!!' written in it.

Also see how the Javascript is in the <script></script> tags. Make sure you give the type of the script block which in this case will be text/javascript.

Your Javascript functions will now go in the script tags, as shown. Notice that in the function refreshIframes() there is a setTimeout() function which calls the function given as the first parameter ('refreshIframes()' in this case) and the number of milliseconds to wait for it to call as the second parameter (60000 in this case [60 seconds]).

Please also note that onload="refreshIframes()" is in the body tag, this calls the refreshIframes() function once the page has loaded.

<html>
   <head>
      <title>Hello World</title>
      <script type="text/javascript">
          function refreshIframes()
          {

              //THE CODE I GAVE YOU EARLIER WILL GO HERE!

              setTimeout('refreshIframes()', 60000);
          }
      </script>
   </head>
   <body onload="refreshIframes()">
       
       <?
           echo 'Hello world!!';
       ?>

       <!-- INSERT IFRAME HERE! -->

   </body>
</html>


If at first you don't succeed, you're not Chuck Norris.

GeneralRe: Refresh iframe Pin
udch25-Aug-09 2:58
udch25-Aug-09 2:58 
GeneralRe: Refresh iframe Pin
fly90425-Aug-09 3:48
fly90425-Aug-09 3:48 
GeneralRe: Refresh iframe Pin
udch2-Sep-09 22:04
udch2-Sep-09 22:04 
Question[Message Deleted] Pin
pallavi shrivastava23-Aug-09 22:01
pallavi shrivastava23-Aug-09 22:01 
AnswerRe: how call a php function Pin
fly90423-Aug-09 22:54
fly90423-Aug-09 22:54 
QuestionI want to referesh php Pin
udch23-Aug-09 18:09
udch23-Aug-09 18:09 
AnswerRe: I want to referesh php Pin
Marc Firth23-Aug-09 21:47
Marc Firth23-Aug-09 21:47 
GeneralRe: I want to referesh php Pin
udch24-Aug-09 0:18
udch24-Aug-09 0:18 
AnswerRe: I want to referesh php Pin
Marc Firth24-Aug-09 1:04
Marc Firth24-Aug-09 1:04 
GeneralRe: I want to referesh php Pin
udch24-Aug-09 2:30
udch24-Aug-09 2:30 
GeneralRe: I want to referesh php Pin
Marc Firth24-Aug-09 2:31
Marc Firth24-Aug-09 2:31 
GeneralRe: I want to referesh php Pin
Marc Firth24-Aug-09 2:39
Marc Firth24-Aug-09 2:39 
QuestionThis is so simple yet can't figure the code to.... Pin
Granny200721-Aug-09 19:14
Granny200721-Aug-09 19:14 
QuestionAn warning Pin
udch20-Aug-09 2:15
udch20-Aug-09 2:15 
AnswerRe: An warning Pin
Marc Firth21-Aug-09 3:43
Marc Firth21-Aug-09 3:43 
GeneralRe: An warning Pin
udch23-Aug-09 18:11
udch23-Aug-09 18:11 
GeneralRe: An warning Pin
Marc Firth23-Aug-09 21:46
Marc Firth23-Aug-09 21:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.