You are here: Re: FireFox and iframes « HTML « IT news, forums, messages
Re: FireFox and iframes

Posted by Jonathan N. Little on 07/11/06 22:06

Ian Rutgers wrote:
> "Jonathan N. Little" <lws4art@centralva.net> wrote in message
> news:39c89$44b31aa7$40cba7c1$13563@NAXS.COM...
>> Ian Rut gers wrote:
>>> Hi everyone,
>>>
>>> I have FireFox 1.0.5.4 and am coding this page
>>> http://www.taoofpeace.com/test/studentresources/testSheets.php In IE &
>>> Opera the iframe loads correctly (no scrollbars and sized correctly with
>>> Javascript). In FireFox the scrollbar appears even though I have
>>> explicity stated scrolling="no". My css sets the width of the iframe and
>>> indicates that the overflow is visible.
>>>
>>> Is this a known issue with FireFox or am I missing something (html/css
>>> wise)?
>> If you are using PHP why are you bothering with an IFRAME?
>>
>
>
> I could write dynamic code in PHP but am operating under the constraint that
> the client has to be able to edit the pages in Macromedia Contribute so by
> putting the test sheets in individual files, it makes it easier for editing.
> If you have another PHP solution ... I am all ears! '-)
>
>

Sure very simple,

the insert file "junior_yellow.php" is done with a
<div id="theInsertFrameStyleAsYouLike">
<?php
include_once(junior_yellow.php);
?>
</div> <!-- End of client's file -->


so your client can do that same as they where before and your main page

http://www.taoofpeace.com/test/studentresources/testSheets.php

can process a query string to load whatever your client's pages are
instead of the src for an iframe, so above example a link URL would be
something like this:

http://www.taoofpeace.com/test/studentresources/testSheets.php?p=junior_yellow

Then with proper checking of course process the query string 'p'
parameter and


<div id="theInsertFrameStyleAsYouLike">
<?php
$fileToInclude=$_GET['p'] . 'php';
// of course I show not checking here and you will want a
// 'default' page for no query parameter on invalid ones

include_once($fileToInclude);
?>
</div> <!-- End of client's file -->

Real simple and NO IFRAME, links to the different belts would be:


testSheets.php?p=junior_yellow
testSheets.php?p=junior_green
....
testSheets.php?p=adult_black







--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация