"<div>" events problem in firing in FireFox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Basharat
    New Member
    • Jul 2007
    • 5

    "<div>" events problem in firing in FireFox

    Hi all
    I have problem on firing "onmouselea ve" event of <div> html element.
    Here is the code im using:
    <div ID="BSHelpPanel " class="PageMenu Main" onclick="javasc ript:this.style .display='none' ;" runat="server" >

    its working fine in IE while some other events too are not firing in firefox
    like
    ondeactivate
    onfocusout
    etc.

    thanks in advance
    Basharat
  • Basharat
    New Member
    • Jul 2007
    • 5

    #2
    its urgent plz reply asap
    thx
    Basharat

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5388

      #3
      Originally posted by Basharat
      Hi all
      I have problem on firing "onmouselea ve" event of <div> html element.
      Here is the code im using:
      <div ID="BSHelpPanel " class="PageMenu Main" onclick="javasc ript:this.style .display='none' ;" runat="server" >

      its working fine in IE while some other events too are not firing in firefox
      like
      ondeactivate
      onfocusout
      etc.

      thanks in advance
      Basharat
      hi ...

      that are no standard-event-handlers:

      onmouseleave -> onmouseout
      ondeactivate ?? what should that do?
      onfocusout -> onblur

      use the correct event-handlers

      kind regards

      Comment

      • Basharat
        New Member
        • Jul 2007
        • 5

        #4
        these events exists. please refer to.
        http://msdn2.microsoft .com/en-us/library/ms535240.aspx#

        Secondly they are working fine in IE as prescribed in msdn.

        if i consider your piont.
        what event should i use for hiding a div once mouse leaves the div.
        remeber "onmouseout " doesnt work cuz the div contains child controls and when mouse comes over child controls(button s) the "onmouseout " of div fires too which i dont want too.

        waiting for the reply.
        regards,
        Basharat

        Comment

        • gits
          Recognized Expert Moderator Expert
          • May 2007
          • 5388

          #5
          i said that they are not 'STANDARD'-event-handlers (in words of standard-compliant) ... when you use IE you are using jscript ... and in case you already know where you find the documentation ... then you may refer for yourself ... trying to find out what standards compliant browsers do with that IE-specifics ... you will never find out on msdn ... except you need IE-specific information ...

          those events are not used by any other browser ... and so your code will not work ...

          Comment

          • Basharat
            New Member
            • Jul 2007
            • 5

            #6
            well ok
            but what can be the possible solution to my problem??
            is there no STANDARD event firing on mouse leaving from div??
            regards,

            Comment

            • gits
              Recognized Expert Moderator Expert
              • May 2007
              • 5388

              #7
              i think ... you may use a seldefined mouseleave-function that you call on mouseout ... it retrieves the mousepos and when it is inside the div you avoid things that you only want to be done when you get out of the div ...

              kind regards

              Comment

              • drhowarddrfine
                Recognized Expert Expert
                • Sep 2006
                • 7434

                #8
                Originally posted by Basharat
                well ok
                but what can be the possible solution to my problem??
                is there no STANDARD event firing on mouse leaving from div??
                regards,
                Use standard javascript, as stated. Don't refer to Microsoft documentation if you want your code to work in all browsers.

                Comment

                • Basharat
                  New Member
                  • Jul 2007
                  • 5

                  #9
                  I understand that.
                  but is there any solution to my problem in standard javascript.
                  I want to hide a DIV on mouseout .
                  Please reply with the solution in standard javascript
                  regards

                  Comment

                  • gits
                    Recognized Expert Moderator Expert
                    • May 2007
                    • 5388

                    #10
                    you may have a look at the following link:

                    Mouse Events

                    kind regards

                    Comment

                    Working...