Closed Bug 62723 Opened 24 years ago Closed 24 years ago

JavaScript not re-run; categories false on form submission.

Categories

(SeaMonkey :: General, defect, P3)

x86
Windows NT

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: jap3003+mozilla, Assigned: asa)

References

()

Details

JavaScript is (apparently) not re-run when the user clicks the "get list" button on this page. When the page user chooses an item in "Looking for," the options available in "categories" change. When the page is re-read, the javascript is not-re-run, so the "categories" options are set back to the default. This web developer has been complaining quite loudly about how he only works with IE because he has so many problems with Netscape. It'd be nice if we could fix his problems to make him change his mind. :)
The issue here is that the state of the "Looking for" dropdown is preserved, but the state of the "Categories" dropdown is not, since that is dynamically constructed by onchange events for the "Looking for" dropdown. So the selected option in "Looking For" and the list of options in "Categories" get out of sync. Unfortunately, I would say this is a problem with the approach the web page author took. If, say, on onload event is added to the document which calls the constructor for the "Categories" dropdown, the problem will go away... It's also possible that the problem is Mozilla treating a page POSTing to itself as just a page reload.
Browser, not engine - reassigning to Browser-General component -
Assignee: rogerl → asa
Component: Javascript Engine → Browser-General
QA Contact: pschwartau → doronr
Actually, I agree with Boris; I think it's bad HTML. Notice the same problem occurs in ALL of these browsers: IE4.7 NN4.7 Mozilla/N6 Once you click the "Get List" button, the "Looking For" and "Categories" drop-downs get out of sync for the reason Boris has outlined. Marking Invalid. If anyone sees why it's not, please reopen -
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.