473,412 Members | 2,142 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

cgi script runs under Opera, but not firefox

Hey there,
i have a python cgi script that prints out html just fine in the Opera
browser
but doesnt print at all under FireFox.
weird, eh?
i am getting nothing in the apache logs about any error.
perhaps its a firefox issue, but i doubt it.

any suggestions. simple script here..

Jul 19 '05 #1
9 2003
Try View Source under Firefox, you should see everything that you're
printing from your CGI on the server. The server side CGI will do the
same thing no matter what browser is requesting the page.

Next, take that source and paste into into some app that will look for
problems like tags that aren't balanced (Dreamweaver is what I'd use.)

-Jim

On 11 Jun 2005 07:00:39 -0700, ne*****@xit.net <ne*****@xit.net> wrote:
Hey there,
i have a python cgi script that prints out html just fine in the Opera
browser
but doesnt print at all under FireFox.
weird, eh?
i am getting nothing in the apache logs about any error.
perhaps its a firefox issue, but i doubt it.

any suggestions. simple script here..

--
http://mail.python.org/mailman/listinfo/python-list

Jul 19 '05 #2
Yes, I agree that it is best to check the HTML source code of the page
that is being generated. The server is obviously generating the code,
but the difference here is how the two browsers are interpreting the
HTML data.

Check the source code for the HTML document. I bet the problem resides
in the page itself.

Brian
---
ne*****@xit.net wrote:
Hey there,
i have a python cgi script that prints out html just fine in the Opera
browser
but doesnt print at all under FireFox.
weird, eh?
i am getting nothing in the apache logs about any error.
perhaps its a firefox issue, but i doubt it.

any suggestions. simple script here..

Jul 19 '05 #3
Well, i don't have an app that will automaticlly check a page for
errors,
unless bluefish will do it, i am not sure.

the page it is supposed to print out is a response to a form entry.

here is the source from Opera if one of you guys want to look at it.

<html>
<head><title>Customer Data</title></head>

<body>
<h1>Watkins Crop Consulting</h1>
</body>
</html>
1915 Cherokee <br>
Dalhart, Tx 79022 <br> 333-5943<br>
<H3>gandalf</H3>

<span style='font-weight: bold;'>Field</span> field one

<br>
<span style='font-weight: bold;'>Crop</span> crop one

<br>
<span style='font-weight: bold;'>GS</span> growing, yep

<br>
<br>
<span style='font-weight: bold;'>Weeds</span> many weeds

<br>
<span style='font-weight: bold;'>Water</span> lots o water

<br>
<span style='font-weight: bold;'>Incects</span> lots o insects

<br>
<br>
<span style='font-weight: bold;'>Remarks</span> comment block, could be
short, could be long, however will we know?

<br>
<br>
<br>

<span style='font-weight: bold;'>Field</span> another field

<br>
<span style='font-weight: bold;'>Crop</span> another crop

<br>
<span style='font-weight: bold;'>GS</span> another growth stage

<br>
<br>
<span style='font-weight: bold;'>Weeds</span> many many weeds

<br>
<span style='font-weight: bold;'>Water</span> lots more water

<br>
<span style='font-weight: bold;'>Incects</span> lots more insects

<br>
<br>
<span style='font-weight: bold;'>Remarks</span> ok , short comment this
time

<br>
<br>
<br>
<br>
this is all generated by the cgi module of python and the script that
responds to the
form.

thanks.

Jul 19 '05 #4
Bingo, found it! Notice that you accidentally close the document before
displaying any information...
ne*****@xit.net wrote:
<html>
<head><title>Customer Data</title></head>

<body>
<h1>Watkins Crop Consulting</h1>
</body>
</html>

<snip> Notice the </body></html> tag above. There's the problem!

Brian
Jul 19 '05 #5
Ok, i made a change in the source. now here is the source from Opera,
still cant get firefox to work with me.

<html>
<head><title>Customer Data</title></head>

<body>
<h1>Watkins Crop Consulting</h1>
</body>

1915 Cherokee <br>
Dalhart, Tx 79022 <br> 333-5943<br>
<H3>gandalf</H3>

<span style='font-weight: bold;'>Field</span> field one

<br>
<span style='font-weight: bold;'>Crop</span> crop one

<br>
<span style='font-weight: bold;'>GS</span> growing, yep

<br>
<br>
<span style='font-weight: bold;'>Weeds</span> many weeds

<br>
<span style='font-weight: bold;'>Water</span> lots o water

<br>
<span style='font-weight: bold;'>Incects</span> lots o insects

<br>
<br>
<span style='font-weight: bold;'>Remarks</span> comment block, could be
short, could be long, however will we know?

<br>
<br>
<br>

<span style='font-weight: bold;'>Field</span> another field

<br>
<span style='font-weight: bold;'>Crop</span> another crop

<br>
<span style='font-weight: bold;'>GS</span> another growth stage

<br>
<br>
<span style='font-weight: bold;'>Weeds</span> many many weeds

<br>
<span style='font-weight: bold;'>Water</span> lots more water

<br>
<span style='font-weight: bold;'>Incects</span> lots more insects

<br>
<br>
<span style='font-weight: bold;'>Remarks</span> ok , short comment this
time

<br>
<br>
<br>
<br>
</html>

maybe there is another place i have gakked up the source.

Jul 19 '05 #6
On 11 Jun 2005 08:56:11 -0700, ne*****@xit.net declaimed the following
in comp.lang.python:
Ok, i made a change in the source. now here is the source from Opera,
still cant get firefox to work with me.

<html>
<head><title>Customer Data</title></head>

<body>
<h1>Watkins Crop Consulting</h1>
</body>
THIS is in the wrong location... You've just told a decent
browser that this is the end of the displayable content.

1915 Cherokee <br>
Dalhart, Tx 79022 <br> 333-5943<br>
<H3>gandalf</H3>

<span style='font-weight: bold;'>Field</span> field one

<br>
<span style='font-weight: bold;'>Crop</span> crop one

<br>
<span style='font-weight: bold;'>GS</span> growing, yep

<br>
<br>
<span style='font-weight: bold;'>Weeds</span> many weeds

<br>
<span style='font-weight: bold;'>Water</span> lots o water

<br>
<span style='font-weight: bold;'>Incects</span> lots o insects

<br>
<br>
<span style='font-weight: bold;'>Remarks</span> comment block, could be
short, could be long, however will we know?

<br>
<br>
<br>

<span style='font-weight: bold;'>Field</span> another field

<br>
<span style='font-weight: bold;'>Crop</span> another crop

<br>
<span style='font-weight: bold;'>GS</span> another growth stage

<br>
<br>
<span style='font-weight: bold;'>Weeds</span> many many weeds

<br>
<span style='font-weight: bold;'>Water</span> lots more water

<br>
<span style='font-weight: bold;'>Incects</span> lots more insects

<br>
<br>
<span style='font-weight: bold;'>Remarks</span> ok , short comment this
time

<br>
<br>
<br>
<br>
</body>
</html>

maybe there is another place i have gakked up the source.
-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Jul 19 '05 #7
fixed, thanks for all of your help.
i am pouring over python texts and the problem is
html... duh....

looking for a more efficient way to jerk all of the hair outta my head.
thanks a whole lot. your awesome

Jul 19 '05 #8
ne*****@xit.net writes:
fixed, thanks for all of your help.
i am pouring over python texts and the problem is
html... duh....


Right. To get HTML that will work in any browser, <URL:
http://www.anybrowser.org/campaign/ >, you really need to validate
your HTML. w3.org provides a public validator at <URL:
http://validator.w3.org/ > (as well as validators for CSS, RDF, XML
Schema and link checking). If you're going to be doing a lot of work
with such formats, you probably want to install a validator
locally. Lots of options for that, depending on what kind of system
you're using.

BTW, practical experience is that you write your application to follow
the standards, then go back and work around the bugs in various
versions of IE.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jul 19 '05 #9
Great Advice, can see that saving me a few headaches
thanks

Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: cwdjrxyz | last post by:
I am now writing many new pages in xhtml 1.1. They are served as true xhtml by setting the mime type of the server to application/xhtml+xml for the .xhtml extension. Since IE6 and some earlier...
44
by: rhythmace | last post by:
W3C HTML validator passes this: .... <script type="text/javascript" src="foo.js"> <script type="text/javascript"> ....script in here... </script> ....
15
by: Lennart | last post by:
Hi folks, I have created an animated image gallery in dhtml. It works fine in Internet Explorer. In Firefox, it only works if I ommit the DOCTYPE tag. The page is valid xhtml-strict but with a...
7
by: Dr J R Stockton | last post by:
I've heard that at <URL:http://www.merlyn.demon.co.uk/js-clndr.htm#P> and using Opera the suffixed dates in the yellow box appear in a single long line instead of in the obvious weekly manner. ...
6
by: Toby Inkster | last post by:
Does anyone have any idea why this effect using script.aculo.us is working in Opera, but not Firefox? http://examples.tobyinkster.co.uk/Balloons2/Balloon%20tooltip.html (I've not had the...
1
by: Cat | last post by:
Hello, maybe someone can help me here.. I was looking for a bookmark script to implement on my website. Actually I always thought such scripts are pretty obsolete but I do have a frame page...
15
by: remi | last post by:
Hi, I would like to write a script that will load a js file according to the browser used. Here is the suggested code : **** function detectBrowser() { var browser=navigator.appName;
7
by: mike57 | last post by:
The minimal AJAX script below works in Firefox, but not in IE, Opera, or Chrome. I could use some suggestions or referrals to resources that will help me get the script working in other browsers. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.