PHP and HTML and IFRAME problem

Reply

Join Date: May 2008
Posts: 113
Reputation: Merlin33069 is an unknown quantity at this point 
Solved Threads: 4
Merlin33069 Merlin33069 is offline Offline
Junior Poster

PHP and HTML and IFRAME problem

 
0
  #1
Apr 22nd, 2009
I included a file in one of my sites via an iframe (simplest solution and by FAR not permanent), just to get a feel for the way it might look on the site

However, after adding the iframe to the site, i have no other data, the page is saved as php, just jumped out of php to add the iframe (doing so in php makes no differance)

But the page is black for all BUT the iframe, any help would be appreciated and i am puzzled

  1. <script language="javascript" type="text/javascript">setTimeout("location.reload();",1000);</script>
  2. <?PHP
  3.  
  4. echo date("l F d, Y, h:i:s");
  5.  
  6. ?>

that a much more basic webpage, this webpage shows nothing as well, all it is supposed to do is show the i frame, and echo the date / time

it will not echo the date / time, only display the iframe

its prolly something stupid
Do you geek alone?

<<TimmCo>> Custom Computers

~Executive
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,473
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 136
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso

Re: PHP and HTML and IFRAME problem

 
0
  #2
Apr 22nd, 2009
That code works perfectly for me so perhaps it's the html code on the main page used to include the iframe. The code I used to include the iframe is as follows:
  1. <iframe src='frame.php' width=300 height=30>Iframe Not supported</iframe>
Also if you want to know what language to do the proper vision in I would suggest pure javascript and a div tag because every second a javascript function could update the contents of what is inside the div tag using basic maths.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 42
Reputation: sassenach is an unknown quantity at this point 
Solved Threads: 0
sassenach sassenach is offline Offline
Light Poster

Re: PHP and HTML and IFRAME problem

 
0
  #3
Apr 22nd, 2009
like cwarn suggested, try using JS to call the iframe, , then display the php date.
if you need more help, please paste your code from the main page and the iframe.
thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC