Closed Bug 22269 Opened 25 years ago Closed 23 years ago

javascript error in Netscape (query.cgi)

Categories

(Bugzilla :: Query/Bug List, defect, P3)

2.13
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: dirtydoris, Assigned: endico)

References

()

Details

(Whiteboard: 2.16)

Netscape comes up with a javascript error - selectProduct is not defined.

I believe the problem is that it doesn't onLoad properly - it should have read
the subsequent stuff before, otherwise it wouldn't have loaded.

Tried sticking onload at bottom of SCRIPT, but perhaps better is to
put it on its own as the last thing in the file in a SCRIPT block.
I get this in NS 3.04 too (HP-UX 10.20) - my suggestion for a fix is to
set up a SCRIPT LANGUAGE=JavaScript section (before the JavaScript1.2 code)
with dummy functions (e.g. a SelectProduct() routine that does nothing).
I suspect that SCRIPT LANGUAGE=JavaScript1.2 causes that code to be skipped
with NS 3.X. By defining dummy functions, you can satisfy the onLoad() for
all versions and re-define it for 1.2 or higher.
Status: NEW → ASSIGNED
I was encountering this problem with Netscape Communicator 4.7...  not on this
site, but on my own bugzilla site.  I eliminated the onLoad() part from the
header on the query.cgi page and the javascript error did not ocurr, but the
page never finished loading, either.  I'm also having trouble getting
show_bug.cgi to load. After more experimenting, I discovered that if I commented
out this chunk of code in CGI.pl, that the pages completed loading:

#    if (Param("shutdownhtml")) {
#        if (!$ignoreshutdown) {
#            print Param("shutdownhtml");
#            exit;
#        }
#    }

This did not happen until the first time I ran tweakparams after upgrading to
Bugzilla 2.9.  I think the shutdownhtml code is getting set to something on
accident during tweakparams even if you leave it empty...
I forgot to mention there that the cause of the "selectProgram not defined" error

was because the page didn't finish loading, and the script itself hadn't been 

transmitted yet.

Maybe I have a solution for your problem (sorry for this double-entry).
Have a look to my comments for Bug #5249 (jug@tellux.de  2000-02-13 19:41).
Originally this was posted as "Javascript error in NS 3.01 under win31". But I'm
getting this consistently with winNT N4.61. I load the page completely the first
time and I get this error, each subsequent load gives me the same error.
Summary: Javascript error in NS 3.01 under win31 → Javascript error in Netscape.
tara@tequilarista.org is the new owner of Bugzilla and Bonsai.  (For details,
see my posting in netscape.public.mozilla.webtools,
news://news.mozilla.org/38F5D90D.F40E8C1A%40geocast.com .)
Assignee: terry → tara
Status: ASSIGNED → NEW
This bug has not been touched for more than nine months. In most cases, that 
means it has "slipped through the net". Please could the owner take a moment to 
add a comment to the bug with current status, and/or close it.

Thank you :-)

Gerv
I think this was fixed in Bug 44076.
QA Contact: matty
Whiteboard: 2.14
Whiteboard: 2.14 → 2.16
moving to real milestones...
Target Milestone: --- → Bugzilla 2.16
Summary: Javascript error in Netscape. → javascript error in Netscape (query.cgi)
Mass moving to new product Bugzilla...
Assignee: tara → endico
Component: Bugzilla → Query/Bug List
Product: Webtools → Bugzilla
Version: other → 2.13
Closing as WFM.

Gerv
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
clearing milestone for invalid/wontfix/worksforme/duplicate so they'll show up
as untriaged if they get reopened.
Target Milestone: Bugzilla 2.16 → ---
verified and not a windows 3.1 issue
Status: RESOLVED → VERIFIED
OS: Windows 3.1 → All
Hardware: PC → All
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.