Closed Bug 451863 Opened 17 years ago Closed 16 years ago

Page full of forms and javascript shows as blank with no error message

Categories

(Firefox :: General, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 327796

People

(Reporter: t.orf, Unassigned)

Details

Attachments

(2 files)

User-Agent: Opera/9.52 (Windows NT 6.0; U; en) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 My page of favorite search forms with lots of javascript shows as a blank page. It works fine in Firefox 2 and Opera 9.52. I've also tried safe mode with no success. Same with Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1a2pre) Gecko/20080823032129 Minefield/3.1a2pre. Reproducible: Always Steps to Reproduce: 1. Save the two attached files, e.g. to folder V:\tmp\jscript 2. Open URL file:///V:/tmp/jscript/misc_forms.html?q=astarte 3. Click on... - wait, there's nothing to click on :-) Actual Results: Blank page. Expected Results: Short version: Should behave as in Firefox 2. Long version: A page with one text field, a drop-down list, and lots of submit buttons. The text field should be filled with the query term (e.g. "astarte") from the URL. Clicking a button should load the corresponding external page with the current query term from the text field (whose contents, if edited, take precedence over the URL parameter). The 2nd button should for example load http://www.google.de/search?q=%22astarte%22 (note the added quotes). The drop-down list should reload misc_forms.html itself, but add a parameter called selection to the URL, so that it immediately redirects to the selected external page.
Forgot to say that the 1st attachment expects the 2nd to be saved as misc_forms.js (in the same directory).
This is probably caused because a <script> tag didn't close properly. Just try changing <script type="text/javascript" src="misc_forms.js"/> to <script type="text/javascript" src="misc_forms.js" </script> and you'll see that everything is displayed. Read bug 305873 for the reasoning.
Great, it works. Thanks! So if the included script is ignored in the "<script ... />" variant, shoudn't there be a message in the error console that the onload functions are undefined? So i think this is still sort of a bug. BTW, you probably meant <script type="text/javascript" src="misc_forms.js"> </script> but FF3 accepts both.
Severity: major → normal
> shoudn't there be a message in the error console that the onload functions are > undefined? No, because nothing tries to call those functions.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: