Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting new div before leaving the other one
Message
From
22/03/2016 06:05:59
 
 
To
21/03/2016 14:43:59
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01633406
Message ID:
01633479
Views:
33
Michel,

I just noticed that jQuery documents relatedTarget as a jQuery property: https://api.jquery.com/event.relatedTarget/

This probably means that some browser don't support relatedTarget natively and you need a frameWork to leverage all this event mess.



>To add more information, I have attached an image showing the toolbar part, which is div #1, and the second div, represented by a color.
>
>The second div, the one in color, is defined like this:
>
>
><div id="Recent" style="visibility: hidden; background-color: #ff00ff; width: 100px; height: 100px;">
></div>
>
>
>So, there is nothing inside that div. There are no child elements. So, this avoids any potential conflicts in the target because it is just the div.
>
>The onmouseout of the toolbar is very simple:
>
>
>   oToolbarTR.onmouseout=function(e) {ToolbarOnMouseOut(e)}
>
>
>And, the onmouseout function is like this:
>
>
>function ToolbarOnMouseOut(event)
>{
>   var e=event.toElement || event.relatedTarget
>   if (e)
>   {
>      alert(e)
>   }
>   if (event)
>   {
>      alert("Event")
>      alert(event)
>      alert(event.region)
>      alert(event.relatedTarget)
>   }
>
>
>Basically, as soon as the cursor touches the color region, the mouse out is called:
>
>1. e is not an object
>2. event is an object of type mousemove
>3. event.region is undefined
>4. event.relatedTarget is null
>
>So, something is missing here.
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform