"be consistent" | |
PerlMonks |
a big mess... (.cgi / frames question)by Konda (Initiate) |
on May 05, 2000 at 07:44 UTC ( [id://10315]=perlquestion: print w/replies, xml ) | Need Help?? |
Konda has asked for the wisdom of the Perl Monks concerning the following question:
<HTML>
I have a rather complicated problem involving perl, HTML,
and .cgi in general. The answer may not necessarily
involve perl, but perl might give a way around. I am
grateful for anyone who takes time to look at this
problem. It is for a senior project, and it involves
displaying and altering a move list for a game of
checkers. I am using perl to activate a .cgi script that will update move list.
The activation (move entry, if you will) button is on a left half frame.
The updated move list (first , text, and then converted to a final, HTML format) is on the right frame, constantly refreshing.
This refresh occurs because the text file that the right hand frame needs to convert to HTML is not only changed by a user entering a move by clicking the "Done" button, but also by another user, altering that text file via FTP (no .cgi involved).
the example of the problem is at http://www.rit.edu/~ee697b/cgi-bin/mast.html enter 2 "coordinates" as shown on the right, and they will show up in the right hand frame
PROBLEM: The problem is, once the moves are refreshed, entering another move... I cannot figure out how to remove the extra frames that recursively pop in each time I enter a new move.
I have "locked" down the borders, but no matter what I do, the frames multiply. The screen real estate dwindles as the move list grows longer, and if the game goes on long enough, the list would disappear (a very unlikely situation, but is possible in an extreme case).
the source code for the necessary files involved is at: http://www.rit.edu/~ee697b/cgi-bin/problem.txt I would post the code here, but it's rather lengthy...
Can someone suggest a strategy for eliminating this problem? I have tried fooling around with many different "targets", frame names, writing permanent html files, or creating them with the script itself. Is there a way that perl can control any of what the frame does, or is it strictly an HTML problem? Are there any examples of other web pages out there that do this type of thing?
Thanks for your time. </HTML>
Back to
Seekers of Perl Wisdom
|
|