Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > FF 3.6 vs IE7 -- clicking on inner DIV causing outer DIV onBlur tofire in FF not in IE

Reply
Thread Tools

FF 3.6 vs IE7 -- clicking on inner DIV causing outer DIV onBlur tofire in FF not in IE

 
 
Tom Y
Guest
Posts: n/a
 
      07-12-2011
I suspect that the FF behavior is the correct one but the problem is that the IE behavior is actually what works for my purposes.

Is there something that I can do so that FF will allow the inner DIV to get the onClick without the outer DIV seeing onBlur?

Thanks.
 
Reply With Quote
 
 
 
 
Elegie
Guest
Posts: n/a
 
      07-12-2011
On 12/07/2011 02:52, Tom Y wrote :

Hi Tom,

> Is there something that I can do so that FF will allow the inner DIV to get the onClick without the outer DIV seeing onBlur?


Unfortunately I have Firefox 5 and not 3.6, but cannot reproduce the
issue in it. Would you mind posting a quick test case demonstrating the
problem?

I have tried the following script. When you click on the inner DIV, no
blur event is dispatched. Do you have one in FF 3.6?

---
<!DOCTYPE html>
<html>
<head><title>Test Div ONblur</title>
<body>
<div id="outer">Outer Div<div id="inner">Inner Div</div></div>
<script type="text/javascript">
var innerDiv = document.getElementById("inner");
var outerDiv = document.getElementById("outer");
function showEvent(evt) {alert((evt || window.event).type);}
innerDiv.onclick = showEvent;
outerDiv.onblur = showEvent;
</script>
</body>
</html>
---

Regards,
Elegie.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
style of inner div is not overriding that of outer div Mc Lauren Series HTML 3 02-13-2010 01:36 AM
Resize inner DIV to fill up outer DIVs height in IE 6 ckirchho@directmedia.de Javascript 1 08-14-2007 11:06 AM
row bottom border in inner table not matching up with row border in outer table phl HTML 1 06-08-2006 03:43 PM
Access outer / inner class variables query lonelyplanet999 Java 3 11-18-2003 07:16 PM
How to access inner classes variables & methods from outer classes lonelyplanet999 Java 1 11-13-2003 01:54 PM



Advertisments