Solved

Problem Formatting Frames with CGI

Posted on 1998-02-10
5
183 Views
Last Modified: 2013-12-25
It is sort of cryptic what I am trying to do, so I will explain in the best I can.  What I am trying to do is generate the original html page with the <Frameset....><Frame...> tages etc and the sources for the frames with a CGI program. (Essentially, everything is being generated with a CGI program with frames). What I am experiencing is that the MarginWidth and MarginHeight does not seem to work. (Everything else works, FRAMEBORDER="0" FRAMESPACING="0" BORDER=NO)  Netscape uses the default Margin values when these generated pages are loaded.  I need the MarginWidth=0 and MarginHeight=0, else the page looks terrible.  If I minimize netscape and then maximize it again the page is displayed correctly, this is the only solution I have come up with.  Has anyone else experienced this or know of a work around, or what I am doing wrong? Can frames like this be generated by a CGI program or does it have to be a static page that Netscape loads first in order to correctly format the page?

Thanx in advance!
0
Comment
Question by:delvin
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:icd
ID: 1831976
In theory the client (your browser) does not know if the page being served is coming from a static html document or a cgi generated one so if there is any difference it must be due to a difference in the output of the two. (or perhaps a timing problem).

As an experiment, take each frame of your document and do a 'save as' locally. You may need to change some of the hrefs but you should then have a complete set of frames and framesets held locally on your pc.

See if you get the same problem with this local set of 'static' documents.

Is there a URL where we can see this behavour for ourselves?

0
 
LVL 5

Accepted Solution

by:
julio011597 earned 100 total points
ID: 1831977
As icd says, this has nothing to do with CGI itself.

Now, i guess this is what you need: in the FRAMESET tag add the BORDER attribute, i.e.:

<FRAMESET ROWS="..." BORDER="0">

This solved the problem for me, on Communicator.

HTH, julio
0
 

Author Comment

by:delvin
ID: 1831978
My applogies for taking so long, too many things happening.  

Unfortunately, your suggestion did not work. :(  I created a small javascript that seems to do the trick.  I appreciate your effort, however.
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1831979
Would you mind showing your solution? there's always something new to learn!
0
 

Author Comment

by:delvin
ID: 1831980
I have just set up a domain and will continue with the account next week.  I will post the URL here and adjust the page so that you can see the problem.  I may be something in Netscape 3.02 as well, so you may not see it if your using 4.0x, I don't know.

In any case, I will let you know the URL when it becomes avaliable.

 
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question