Skip Menu |

This queue is for tickets about the CGI-ProgressBar CPAN distribution.

Report information
The Basics
Id: 6635
Status: resolved
Worked: 10 min
Priority: 0/
Queue: CGI-ProgressBar

People
Owner: Nobody in particular
Requestors: kevin [...] oldcomm.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.02
Fixed in: 0.03



Subject: XHTML output incompatible with Mozilla
Hello, I'm having trouble with either the Javascript or the CSS that is produced from the synopsis.pl example being displayed in Mozilla on Linux. The main thing is that the actual graphical bar isn't displayed. Running the page with IE on Windows, everything works fine. I've checked the syntax with W3.org's HTML checker and it says that it is invalid XHTML. I'm working on a patch for this to submit to you, but wanted to make you aware of it. Thanks, Kevin
The problem was that the stylesheet was output within the HTML 'body' element, which is not valid. The soloution is ... poor. In OO mode, an inline CSS will be generated in the 'head' element. The functional mode, though, is screwed, because the styles are generated based on paramters supplied by the user at the time of calling &progress_bar, which is naturally in the body of the document. A potential soloution is to have an &init_progressbar method: what do you think? Cheers, Lee
From: kevin [...] oldcomm.com
[LGODDARD - Wed Nov 17 13:52:20 2004]: Show quoted text
> The problem was that the stylesheet was output within the HTML 'body' > element, which is not valid. > > The soloution is ... poor. In OO mode, an inline CSS will be generated > in the 'head' element. The functional mode, though, is screwed, > because > the styles are generated based on paramters supplied by the user at > the > time of calling &progress_bar, which is naturally in the body of the > document. > > A potential soloution is to have an &init_progressbar method: what do > you think? > > Cheers, > Lee
Yes, that solution might work. Have you considered moving the Javascript into a .js file and the CSS into a .css file linking to them via something like this: For the CSS: <link rel="stylesheet" type="text/css" title="default style" href="untitled.css" /> For the Javascript: <script LANGUAGE="JavaScript" src="/scripts.js"></SCRIPT> Let me know if you have something to test. I'd be happy to help. Just a thought... Kevin