Closed
Bug 482072
Opened 16 years ago
Closed 15 years ago
Making the event object globally accessible
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: petc10, Unassigned)
Details
(Whiteboard: [CLOSEME 2010-11-01])
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7
function attachTargetAspNetValidators(e,ctrl)
{
var target = (e.srcElement ? e.srcElement : e.target);
if (ctrl.Validators)
{
target.Validators = ctrl.Validators;
}
}
function validateAspNetValidators(ctrl)
{
// En bon canadian français... criss de tabarnac de calisse de ciboire de saint-sacrement d'évangile de criss
// <PRB> The **** event object is not global in FireFox and others. Is is possible to make the **** event object always accessible ? I DON'T WANT TO HAVE TO PASS THIS **** OBJECT IN ALL MY FUNCTION CALLS. I'M HAPPY TO BEEN ABLE TO FIND A SOLUTON TO MY **** PROBLEM, BUT FOR HOW MANY TIMES I'LL FIND A WORKAROUND ?
//attachTargetAspNetValidators(event,ctrl);
//ValidatorOnChange(event);
var fuckingEvent = new Function();
fuckingEvent.target = ctrl;
ValidatorOnChange(fuckingEvent);
}
Reproducible: Always
Steps to Reproduce:
APS.NET : Try to create a user control that have two input fields : one for the value (hidden) and the other for the text, just like a combobox. If the value is empty, the RequiredFieldValidator must be invalid. The problem, is when the user enters text in the combobox that don't match an existing item, the required validator's text should be visible. For that, I've bound the validator to the value field. But when the user enters text in the text field, the validator doesn't appear. I have to manually call ValidatorOnChange. But this function needs an event object from the event that triggered my function. The problem is that my function is called from others. And no, it's not a design problem. I can't pass the event object to all my functions calls !
Actual Results:
The event object is not globally accessible.
Expected Results:
The event object should be globally accessible.
No additional information.
Comment 1•15 years ago
|
||
This is a mass search for bugs which are in the Firefox General component, are
UNCO, have not been changed for 500 days and have an unspecified version.
Reporter, can you please update to Firefox 3.6.10 or later, create a fresh profile, http://support.mozilla.com/en-US/kb/managing+profiles, and test again. If you still see the issue, please update this bug. If the issue is gone, please set the status to RESOLVED > WORKSFORME.
Whiteboard: [CLOSEME 2010-11-01]
| Reporter | ||
Comment 2•15 years ago
|
||
My message needs some censorship :) Sorry, but I think I had a bad day when I wrote it. Anyway, I don't do javascript and web development now. But it could be nice to have this object (event) global.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•