Replace <iframe> for PHP

This is a discussion on "Replace <iframe> for PHP" within the PHP Forum section. This forum, and the thread "Replace <iframe> for PHP are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 20th, 2007, 07:52
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 28
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Replace <iframe> for PHP

I'm building a website with a standard CMS. This CMS uses an <iframe>-tag in it's template *shiver*.
Now. Is there a way to change this code completely into PHP?
Yes, I know it's not written in CSS. I'll fix that too

Code: Select all
<body bgcolor="<? echo $backcolor; ?>" leftmargin="0" topmargin="0" marginwidth="0">
<br>
<table width="720" border="0" align="center" class="hoofdtabel">
<tr>
<td colspan="2" align="left" height="75" valign="top">
  <h1><? echo "$title"; ?></h1>
  <i><? echo "$description"; ?></i><br><br>
  </td>
</tr>
<tr>
<td width="150" align="center" valign="top">
<? include "nav.php"; ?>
</td>
<td width="550">
<iframe src="page.php?id=<?php echo $startpage; ?>" width="550" height="400" name="centerframe" id="centerframe" frameborder="0"></iframe> 
</td>
Oh, there's more..
In the "nav.php" the menu-items target to the frame ofcourse..
Code: Select all
while($rij = mysql_fetch_object($result)){
  $title = $rij->title;
  $id = $rij->id;
  print("<tr>
         <td>
         <a href=\"page.php?id=$id\" target=\"centerframe\"><strong>$title</strong></a>
         </td>
         </tr>
        ");
    }
*scrathes head* Am I getting myself in trouble now?

Last edited by delusion; Jun 20th, 2007 at 08:44.
Reply With Quote

  #2 (permalink)  
Old Jun 20th, 2007, 08:57
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 28
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Replace <iframe> for PHP

Hmm.. I think I fixed it already. I just merged the index.php (template) with the page.php, and it seems to work..
So I got rid of the iframe-tag myself..
thanks for viewing this thread anyway
Reply With Quote
  #3 (permalink)  
Old Jun 20th, 2007, 14:51
Reputable Member
Join Date: Jun 2007
Location: UK
Age: 29
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to Voodoochilli
Re: Replace <iframe> for PHP

Was going to say that you can use a CSS scroller instead of an iframe (if you need scrolling)

for example

#scroller {
top : 10%;
bottom : 100px;
margin : 0px 0px 0px 0px;
padding-left : 0px;
padding-right : 0px;
color : #000000;
overflow : auto;
width : 325px;
height: 200px;
}
Reply With Quote
Reply

Tags
php, iframe

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] refresh a different iframe once an iframe elsewhere has loaded cosmicbdog JavaScript Forum 1 Jan 25th, 2008 01:50
JS replace help immi1979 JavaScript Forum 15 Dec 7th, 2007 06:49
Can a jsp file in an IFrame calls a javascript function outside of the IFrame jadeite100 JavaScript Forum 0 May 31st, 2007 14:29
Using RQ Search and Replace for HTML tag editing diakin Scripts and Online Services 0 Feb 10th, 2007 09:13
Text replace in a table cell on same page gribble Web Page Design 10 Sep 28th, 2005 05:32


All times are GMT. The time now is 22:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43