By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,723 Members | 1,891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,723 IT Pros & Developers. It's quick & easy.

objective PHP + html frameset

P: n/a
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 ;-)
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
*** dan (dj74) wrote/escribió (Tue, 08 Jun 2004 11:26:33 +0200):
how to do it using classes and autogenerated files for frameset?


I just can't figure out what your problem is :-?
--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Jul 17 '05 #2

P: n/a
> all works fine, but without frames, now I want to make it works in
html frameset


Think twice about using frames:

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

--
Daan
Jul 17 '05 #3

P: n/a
Pewnego pięknego dnia 2004-06-08 12:48, siedzący przy klawiaturze Alvaro
G Vicario napisał co następuje::
how to do it using classes and autogenerated files for frameset?
I just can't figure out what your problem is :-?


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 ;-)
Jul 17 '05 #4

P: n/a
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:ca**********@nemesis.news.tpi.pl...
Pewnego pięknego dnia 2004-06-08 12:48, siedzący przy klawiaturze Alvaro
G Vicario napisał co następuje::
how to do it using classes and autogenerated files for frameset?

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


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 ;-)

Jul 17 '05 #5

P: n/a
Tony Marston wrote:
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?

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
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.