Closed
Bug 401541
Opened 18 years ago
Closed 15 years ago
onblur()
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: amoghkutumbe, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Build Identifier: Linux ES4
I have written a code for button.When button is tabbed then onblur() event is fired froma javascript function.But it is giving me error as onblur() is not defined.Is there any solution to slove this?
It is perfectly working on IE
for eg
onKeyPress(){
....
....
if(!navigator.appname("IE")){
onblur();
}
}
Reproducible: Always
Steps to Reproduce:
1.press tab to bring focus on button
2.
3.
Actual Results:
onblur() function not defined error occurred
Expected Results:
It should not give any error
Comment 1•18 years ago
|
||
Can you attach a simple testcase that demonstrates the bug (and works "correctly" in IE)?
I m giving the code below which failed on mozilla
<html>
<script>
function check(event){
var temp = document.getElementById("a");
var temp1 = document.getElementById("b");
var temp2 = document.getElementById("c");
var temp3 = document.getElementById("d");
var temp4 = document.getElementById("f");
var temp5 = document.getElementById("tt");
alert(event.keyCode);
if(temp.checked == true){
temp.checked = true;
temp1.checked = true;
temp2.checked = true;
temp3.checked = true;
temp4.checked = true;
}
else if(temp.checked == false){
temp.checked = false;
temp1.checked = false;
temp2.checked = false;
temp3.checked = false;
temp4.checked = false;
}
}
function show(){
var ak = document.getElementById("aa");
var a = navigator.appName.indexOf("Internet Explorer");
if(a == -1){
onblur();
}
}
</script><body><select title="aaa">
<option>a</option></select><input type="text" id="tt" title="aaa" onClick="check(event);"/>
<input type="checkbox" value="a" id="a" onClick="check(event);">a</input>
<input type="checkbox" value="a" id="b">a</input>
<input type="checkbox" value="a" id="c">a</input>
<input type="checkbox" value="a" id="d">a</input>
<input type="checkbox" value="a" id="f">a</input>
<div id="divc" >
<input type="button" id="aa" value="a" title="aaa" onClick="show()"></input>
</div>
</body></html>
Comment 4•18 years ago
|
||
What is the code trying to do by calling onblur()? Which onblur() function is it trying to call?
Does IE behave differently when you remove the "skip this code if we're in IE" check? If so, what does |onblur| give you in IE?
I can't test IE myself since I'm using Mac.
Comment 5•18 years ago
|
||
The same thing happens in Safari: its error console also says something about |onblur| being undefined.
Actually i have 10 buttons on my page in a straight line.Focus is moved using tab.When only onBlur() is called it works perfectly in IE but not in Firefox.I tried by removed this check then no error occurs but focus is not moved to another button.Also i tried by writing my own onBlur function,there no error occurs but tab focus is not moving.
Comment 7•15 years ago
|
||
This bug was reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.3 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
http://www.mozilla.com
http://support.mozilla.com/kb/Managing+profiles
http://support.mozilla.com/kb/Safe+mode
Comment 8•15 years ago
|
||
No reply, INCOMPLETE. Please retest with Firefox 3.6.x or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•