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

including pages in pages

P: n/a
Just a quick question...

When including a page inside another (include('page.php')), is it bad for
the second document to also have <head> and <body> tags etc? Im using
iframes currently, and it works, but getting the page to match the content
is kind of a javascript hack that only works after the page is loaded, not
counting the images. So the new page loads, doesnt fit the old page size,
and its changed. Not exactly fluid.

Thx
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
*** Theo wrote/escribió (Tue, 28 Sep 2004 06:26:08 -0000):
When including a page inside another (include('page.php')), is it bad for
the second document to also have <head> and <body> tags etc?
That's malformed HTML.
Im using iframes currently, and it works, but getting the page to match the content
is kind of a javascript hack that only works after the page is loaded, not
counting the images. So the new page loads, doesnt fit the old page size,
and its changed. Not exactly fluid.


Sorry, I can't understand what you mean. But including external files in
PHP is the same as doing a copy+paste in your text editor. It has nothing
to do with frames, where external docs are merely linked.

--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
Jul 17 '05 #2

P: n/a
Alvaro G Vicario <al******************@telecomputeronline.com> wrote in
news:bl***************************@40tude.net:
*** Theo wrote/escribió (Tue, 28 Sep 2004 06:26:08 -0000):
When including a page inside another (include('page.php')), is it bad
for the second document to also have <head> and <body> tags etc?


That's malformed HTML.
Im using iframes currently, and it works, but getting the page to
match the content is kind of a javascript hack that only works after
the page is loaded, not counting the images. So the new page loads,
doesnt fit the old page size, and its changed. Not exactly fluid.


Sorry, I can't understand what you mean. But including external files
in PHP is the same as doing a copy+paste in your text editor. It has
nothing to do with frames, where external docs are merely linked.


Thanks, I will me sure to leave out the info. The iframes method Im
currently using loads other pages inside the frame depending on what is
clicked in the main page (which doesnt reload). When the new page is
loaded... I mean 'after' the new page is loaded, the iframe size is
changed to match the new content with some javascript. The other problem
of course is that iframes only works in the newest browsers.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.