#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    2
    Rep Power
    0
    Up until recently my world consisted of green screens and green screen emulators, so bear with me if this is ridiculously straight forward.

    I need to send server-generated pages to specific frames in the client's browser. I'm familiar with _target="framex"_ but can't see how to return content to a different or multiple frames.

    An rtfm with references would be appreciated :{>

    Cheers
    Ski Fiend
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>I need to send server-generated pages to specific
    >>frames in the client's browser.

    For GET method, simply use the simple html way (set it in frame page) and specify the target.

    For POST method or GET method (with form), simply add target="frame_name" within the <form> tag.

    i.e.
    <form method="POST" action="/cgi-bin/script.pl" target="frame_name">

    >>An rtfm with references would be appreciated :{>
    This question has been asked a few times here but I forgot which exact forum.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    2
    Rep Power
    0
    Thanks for the speedy response, though what I'm really after is a way to target frames from the server side. So, in spite of a request with target="framex", I want to update framex and framey, or more generically, what I'm after server side is

    if var=c1 then
    build and load frame1
    elseif var=c2
    build and load frames 2 and 3
    elseif var=c3
    build and load frames 1 and 3
    endif
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>what I'm after server side is

    1) create write the content to abc.html or preferably a random name (i.e. asadffbc.html)
    and store it somewhere on the server
    2) create write the content of the next frame to new file -> def.html
    3) print the frameset page to screen containing the two newly created files within the frame sources.

    print "Content-type: text/htmlnn";
    print "<html>n";
    print "<frameset frameborder="0" border="no" framespacing="0" rows="88%,*">n";
    print "<frame name="main" src="abc.html" target="main">n";
    print "<frame name="bottom" src="def.html" scrolling="no">n";
    print "</frameset>n";
    print "</html>n";

    As I said, to avoid duplicate file name or the overwritten of old files, you should create random file names in place of abc.html and def.html



IMN logo majestic logo threadwatch logo seochat tools logo