including pages in pages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Theo

    including pages in pages

    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
  • Alvaro G Vicario

    #2
    Re: including pages in pages

    *** Theo wrote/escribió (Tue, 28 Sep 2004 06:26:08 -0000):[color=blue]
    > When including a page inside another (include('page. php')), is it bad for
    > the second document to also have <head> and <body> tags etc?[/color]

    That's malformed HTML.
    [color=blue]
    > 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.[/color]

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

    Comment

    • Theo

      #3
      Re: including pages in pages

      Alvaro G Vicario <alvaro_QUITAR_ REMOVE@telecomp uteronline.com> wrote in
      news:bll3hvaacj 4.1bdz9hj8sh2bj .dlg@40tude.net :
      [color=blue]
      > *** Theo wrote/escribió (Tue, 28 Sep 2004 06:26:08 -0000):[color=green]
      >> When including a page inside another (include('page. php')), is it bad
      >> for the second document to also have <head> and <body> tags etc?[/color]
      >
      > That's malformed HTML.
      >[color=green]
      >> 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.[/color]
      >
      > 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.
      >[/color]

      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.

      Comment

      Working...