Bugs item #840767, was opened at 2003-11-12 09:31
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105757&aid=840767&group_id=5757

Category: DynAPI 3 API
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: David Haggard (dhaggard)
Assigned to: Nobody/Anonymous (nobody)
Summary: mouse_ie.js null error, with possible patch

Initial Comment:
Background: 
Two objects on page (among others, but these seem to 
be the "offenders."
1) A single DynLayer with a single assigned 
eventListener for mouseover/mouseout, and using the 
glideTo method. Used to scroll a navigation menu up and 
down at top of page. 
2) A form button, disabled by default, with a "title" 
attribute set. No onmouseover trap defined for this 
button.

Symptom:
   On rapid mouseover over the button, javacript error in 
line 71 of mouse_ie.js. "null is not an object."
   Interesting that this only happened when the mouse 
was moving quickly. Never happened with slow mouse 
movement.

Lines 70-74 in mouse_ie.js --
----------------------------------
if (e.type=="mouseout" || e.type=="mouseover") {
  if (r && (r==src||src.isParentOf(r))) return; //fix for 
#15 (ie only)
  //if (r&&(r==src.parent||r.isChildOf(src.parent))) 
me.bubble=false;
  if (r&&(r==src.parent||r.isChildOf(src.parent))) 
me.bubble=false;
}
---------------------------------

I eliminated the problem, with no affect on correct 
functionality, by changing to this:

Lines 70-76 in mouse_ie.js --
---------------------------------
if (e.type=="mouseout" || e.type=="mouseover") {
  if (src != null) {    // error handler if src is null
    if (r && (r==src||src.isParentOf(r))) return; //fix for 
#15 (ie only)
    //if (r&&(r==src.parent||r.isChildOf(src.parent))) 
me.bubble=false;
    if (r&&(r==src.parent||r.isChildOf(src.parent))) 
me.bubble=false;
  }
}
--------------------------------

May not be the best fix, but it worked for this strange 
error. I searched and searched, and never could find 
WHY this error was occurring with a form button that is 
in no way using the DynAPI.

David Haggard

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105757&aid=840767&group_id=5757


-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to