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


In reply to a big mess... (.cgi / frames question) by Konda

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.