objective PHP + html frameset

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dan (dj74)

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

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

    Comment

    • Daan

      #3
      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:



      --
      Daan


      Comment

      • dan (dj74)

        #4
        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,$tableFi le);
        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 ;-)

        Comment

        • Tony Marston

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

          This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL




          "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,$tableFi le);
          > 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]


          Comment

          • dan (dj74)

            #6
            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:40 0px; height:500px; overflow:scroll ; overflow-x:hidden;
            overflow-y:auto; position:static ; visibility:visi ble;">
            <table>jakies dane w tabeli</table>
            </DIV>

            the solution came from pl.comp.lang.ph p

            thanks all for help
            Daniel

            Comment

            Working...