Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 17th, 2005, 06:42 AM
dan (dj74)
Guest
 
Posts: n/a
Default objective PHP + html frameset

Hi All,

my application looks like this:

(file index.php)

application = new MyApplication();
application->run();

//all code of the application is in MyApplication class and other
classes related to MyApplication class,

there is .../index.php in the address field of my browser there, all the
time application runs (variables handled in session)

all works fine, but without frames, now I want to make it works in html
frameset

how to do it?, all the time I've olny one file index.php in the browser
address field (index.php is autogenerated), but to make it work in
frameset I need file for frameset, and one file for each frame,

how to do it using classes and autogenerated files for frameset?

someone can help me?


Daniel

--

d.jarosik [monkey] magnat [dot] gda [dot] pl
//sig powered by vi ;-)
  #2  
Old July 17th, 2005, 06:42 AM
Alvaro G Vicario
Guest
 
Posts: n/a
Default Re: objective PHP + html frameset

*** dan (dj74) wrote/escribió (Tue, 08 Jun 2004 11:26:33 +0200):[color=blue]
> how to do it using classes and autogenerated files for frameset?[/color]

I just can't figure out what your problem is :-?


--
--
-- Álvaro G. Vicario - Burgos, Spain
--
  #3  
Old July 17th, 2005, 06:42 AM
Daan
Guest
 
Posts: n/a
Default Re: objective PHP + html frameset

> all works fine, but without frames, now I want to make it works in[color=blue]
> html frameset[/color]

Think twice about using frames:

http://www.html-faq.com/htmlframes/?framesareevil

--
Daan


  #4  
Old July 17th, 2005, 06:42 AM
dan (dj74)
Guest
 
Posts: n/a
Default Re: objective PHP + html frameset

Pewnego pięknego dnia 2004-06-08 12:48, siedzący przy klawiaturze Alvaro
G Vicario napisał co następuje::
[color=blue][color=green]
>>how to do it using classes and autogenerated files for frameset?[/color][/color]
[color=blue]
> 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 ;-)
  #5  
Old July 17th, 2005, 06:42 AM
Tony Marston
Guest
 
Posts: n/a
Default Re: objective PHP + html frameset

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]


  #6  
Old July 17th, 2005, 06:42 AM
dan (dj74)
Guest
 
Posts: n/a
Default Re: objective PHP + html frameset

Tony Marston wrote:[color=blue]
> 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?
>[/color]
OK, sometimes one try to search to solve the problem, but solution is
very simple, there's no need to use frames, iframes or <object>.
Best solution for me, is to use scrollable table like this:

<DIV style="width:400px; height:500px; overflow:scroll; overflow-x:hidden;
overflow-y:auto; position:static; visibility:visible;">
<table>jakies dane w tabeli</table>
</DIV>

the solution came from pl.comp.lang.php

thanks all for help
Daniel
 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles