SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: CGI frames

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2001
    Location
    Portland, OR
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CGI frames

    just wondering if anyone knows a good way to place an on-the-fly html page (i'm working in perl to generate this)into an html-frameset?

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have one cgi script that prints the HTML for the frames (for example script.cgi) and then link the other pages from that:

    e.g. script.cgi?frame=left, script.cgi?frame=main, etc

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2001
    Location
    Portland, OR
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    okay, so i have a script that generates the html for the frames, but i am a little confused about what you mean by linking the pages together from there...?

  4. #4
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the same script check for frame in the query string (I can't remember how to do this in Perl)

    If the value is left (script.cgi?frame=left) then display the HTML for the left frame, etc.

    Does that help?
    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  5. #5
    SitePoint Enthusiast
    Join Date
    Sep 2001
    Location
    Portland, OR
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    super, i've got it now.
    thanks for your help.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •