Closed Bug 62463 Opened 24 years ago Closed 24 years ago

Bugzilla helper "Search Bugzilla" broken.

Categories

(Bugzilla :: Bugzilla-General, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Bugzilla old

People

(Reporter: paul, Assigned: gerv)

References

()

Details

If on step 2 of the Bugzilla helper you type in some text to search for in bugzilla, then hit enter, the form submits itself to the same page which is rather useless. The desired action for the form is only undertaken if the user clicks on the search button. Could this be fixed by adding: onSubmit="SearchForBugs(this.form.keywords.value,this.form.searchLong)" to the <form> element? Or something.
Assignee: tara → gervase.markham
OS: Linux → All
Hardware: PC → All
Bugzilla Helper -> gerv
I've tried this before, but with onChange(). onSubmit() seems much more sane :-) It seems to work, in Mozilla, except it keeps putting the new window to the back... I can't get it to work in IE, though :-( I'll need help here... Currently I'm trying <form name=query action:"http://bugzilla.mozilla.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGN ED&bug_status=REOPENED&bug_status=UNCONFIRMED" onSubmit="SearchForBugs(this.keywords.value,this.searchLong)"> but I've tried many variations. Gerv
Component: Bugzilla → Bugzilla Helper
mcgarry@tig.com.au - can you help me out here? Gerv
Yes, I'm sure I can. I will save a copy of the bugzilla helper page locally and hack it until it works the way I think it should in a cross browser fashion. I'm away for a few days, but after that, we should be rocking.
mcgarry@tig.com.au - any joy? :-) Gerv
Righto, I've changed the form element to: <form name=query action="" onSubmit="SearchForBugs(this.keywords.value,this.searchLong);return false;"> and the search button element to: <input type=submit value=Search> The return false is the key bit I think, as it stops the page reloading, which was probably bringing it to the front in IE. Tested in Linux NS4.72, Moz Nightly, Opera 5b8 Windows IE5 and IE4 (by bc and Ksozez on irc) Result viewable here: http://homepages.tig.com.au/~mcgarry/bughelper/bugzilla-helper.html
You da man :-) I'll check this out properly later. Gerv
Checked in. Many, many thanks :-) Gerv
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Webtools/Bugzilla Helper is being retired.
Component: Bugzilla Helper → Bugzilla-General
Product: Webtools → Bugzilla
Target Milestone: --- → Bugzilla old
Version: other → unspecified
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.