Question 1: What makes you think that you need to use frames? Why can't you
construct a complete page from separate components? After all, that is what
PHP is good at.
Question 2: Do you actually know how frames work? Each part of a frameset is
constructed from a separate document, therefore it is not possible to output
the entire output for a page of frames in a single document. Outputting a
document which is going to be rendered inside a frame is no different from
outputting any other page, so what's the problem?
--
Tony Marston
http://www.tonymarston.net
"dan (dj74)" <no@mail.pl> wrote in message
news:ca47gu$36q$1@nemesis.news.tpi.pl...[color=blue]
> Pewnego pięknego dnia 2004-06-08 12:48, siedzący przy klawiaturze Alvaro
> G Vicario napisał co następuje::
>[color=green][color=darkred]
> >>how to do it using classes and autogenerated files for frameset?[/color][/color]
>[color=green]
> > I just can't figure out what your problem is :-?[/color]
>
> the problem is, that I don't know how to do it using single file
> (index.php)
> maybe I can parse only parts of file, each part for the frame?
>
> normally there is one file that keep frameset, and some files for frames,
> I want to do it using only single file index.php, the file can be read
> partialy by a frame, but I don't know how do it ;-(
>
> I can use one <object> field instead of frameset,
> the question is how to fill <object> field with a part of my file,
> for example, there is:
>
> $table->toHtml();
>
> in the index.php file, and I want autogenerated table to be set in
> <object> on my page, I can do it this way
>
> $temp = $table->toHtml();
> $file = fopen('temp.php','w+');
> fwrite ($file,$tableFile);
> fclose($file);
>
> and then
> echo '<object data="temp.php" type="text/html" width="90%"
> height="300"></object>';
>
> but, I think it's not the right solution, it's absolutly not correct!
>
> any suggesion how to solve the problem?
>
> --
>
> d.jarosik [monkey] magnat [dot] gda [dot] pl
> //sig powered by vi ;-)[/color]