Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ydn-javascript · Yahoo! User Interface Library Group

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 12937
  • Category: JavaScript
  • Founded: Dec 15, 2005
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
0.12.1 yuimenu - problem in mouseOver event   Topic List   < Prev Topic  |  Next Topic >
Summarize Messages | View Threaded Sort by Date v  
#8025 From: Todd Kloots <kloots@...>
Date: Tue Jan 2, 2007 5:14 pm
Subject: Re: 0.12.1 yuimenu - problem in mouseOver event
toddkloots
Send Email Send Email
 
I think that you are over complicating things by
creating your context menu in response to a
"mouseover" event. The easiest to improve performance
way would be to use the "onAvailable" method of the
Event utility to track when your hyperlink becomes
available in the DOM and then instantiate your context
menu in response. I have created an example for you:

http://yuiblog.com/sandbox/yui/v0121/examples/menu/example02.php

I hope that helps.

- Todd

--- kavithapb pujar <kavithapronet@...> wrote:

> Hiiiiii kloots,,,
>
> I am using ContextMenu,,and framing the menu upon
> mouseOver event of a hyperlink,,,
>
> This is the function called upon mouseOver event of
> hyperlink,,
>
> function buttonMouseOver(evt, id) {
>
> evt = (evt) ? evt : ((window.event) ?
> window.event : "");
> if (evt) {
> var target = (evt.target) ? evt.target :
> evt.srcElement;
> if (target.tagName == "IMG") {
> target = target.parentNode;
> }
> var ele = toolsCache[id];
> if (! ele) {
> ele = loadMenu(id, target);
> ele.show();
> } else {
> ele.show();
> } } }
>
> in loadMenu() i am creating the context menu passing
> id and target,,
>
>
> loadMenu(id,target){
> menu = new YAHOO.widget.ContextMenu(id,
> {trigger : target});
> menu.mouseOutEvent.subscribe(onMenuMouseOut,
> menu, true);
> menu.render(document.body);
> }
>
> As u said in relase Notes u are focussing initially
> upon menuitem on menuLaod,,itz directly calling
> mouseOutEvent and menu is disappearing
>
> Hope you got idea about my problem,,
>
> In Another way,,,, is if i specify hideDelay,,then
> submenus will go,,but still mainMenu doesn't
> disappear
>
> I dont know where to submit example,,please provide
> link to submit example so that you can have better
> idea about my problem
>
> Waiting for Reply,,,,,,
>
> Thank You
>
>
>
> Todd Kloots <kloots@...> wrote:
> I'd be happy to help you debug
> this if you could
> provide a code sample.
>
> Thanks.
>
> - Todd
>
> --- kavithapronet <kavithapronet@...>
> wrote:
>
> > Hii all,
> >
> > I am using popup menu on mouse over event of yui
> > I have problem in mouseover event in 12.1 version
> in
> > menu.js,,
> >
> > if i move mouse over menu before i move mouse
> upon
> > menu items,,menu
> > disappears
> >
> > This problem was not there in 12.0 version,it was
> > working fine.
> >
> > I am subscribing to mouseOver event and then
> > rendering the menu
> >
> > menu.mouseOutEvent.subscribe(onMenuMouseOut,
> menu,
> > true);
> > menu.render(document.body);
> >
> > Do i need to add anything more in 12.1 version?
> >
> > Plz reply
> >
> > Thank You
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> > (Yahoo! ID required)
> >
> >
> mailto:ydn-javascript-fullfeatured@yahoogroups.com
> >
> >
> >
> >
> >
> >
>
>
>
>
>
> Send free SMS to your Friends on Mobile from your
> Yahoo! Messenger. Download Now!
http://messenger.yahoo.com/download.php




#8006 From: kavithapb pujar <kavithapronet@...>
Date: Tue Jan 2, 2007 6:35 am
Subject: Re: 0.12.1 yuimenu - problem in mouseOver event
kavithapronet
Send Email Send Email
 
Hiiiiii kloots,,,

I am using ContextMenu,,and framing the menu upon mouseOver event of a hyperlink,,,

This is the function called upon mouseOver event of hyperlink,,

function buttonMouseOver(evt, id) {
   
    evt = (evt) ? evt : ((window.event) ? window.event : "");
      if (evt) {
        var target = (evt.target) ? evt.target : evt.srcElement;
        if (target.tagName == "IMG") {
            target = target.parentNode;
        }
        var ele = toolsCache[id];
        if (! ele) {
                 ele = loadMenu(id, target);
                  ele.show();
        } else {
                ele.show();
  } } }

in loadMenu() i am creating the context menu passing id and target,,


loadMenu(id,target){
     menu = new YAHOO.widget.ContextMenu(id,  {trigger : target});
    menu.mouseOutEvent.subscribe(onMenuMouseOut, menu, true);
    menu.render(document.body);
}

As u said in relase Notes u are focussing initially upon menuitem on menuLaod,,itz directly calling mouseOutEvent  and menu is disappearing

Hope you got idea about my problem,,

In Another way,,,, is if i specify hideDelay,,then submenus will go,,but still mainMenu doesn't disappear

I dont know where to submit example,,please provide link to submit example so that you can have better idea about my problem

Waiting for Reply,,,,,,

Thank You



Todd Kloots <kloots@...> wrote:
I'd be happy to help you debug this if you could
provide a code sample.

Thanks.

- Todd

--- kavithapronet <kavithapronet@yahoo.co.in> wrote:

> Hii all,
>
> I am using popup menu on mouse over event of yui
> I have problem in mouseover event in 12.1 version in
> menu.js,,
>
> if i move mouse over menu before i move mouse upon
> menu items,,menu
> disappears
>
> This problem was not there in 12.0 version,it was
> working fine.
>
> I am subscribing to mouseOver event and then
> rendering the menu
>
> menu.mouseOutEvent.subscribe(onMenuMouseOut, menu,
> true);
> menu.render(document.body);
>
> Do i need to add anything more in 12.1 version?
>
> Plz reply
>
> Thank You
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
> (Yahoo! ID required)
>
> mailto:ydn-javascript-fullfeatured@yahoogroups.com
>
>
>
>
>
>


Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php


#7986 From: Todd Kloots <kloots@...>
Date: Sat Dec 30, 2006 5:04 pm
Subject: Re: Re: 0.12.1 yuimenu - problem in mouseOver event
toddkloots
Send Email Send Email
 
"bubbarubadub" -

What issues are you experiencing with 0.12.1? Can you
please provide an explanation, code sample and file
the bugs via SourceForge so that I can fix the issues?

Thanks,
Todd

--- bubbarubadub <randall.toepfer@...>
wrote:

> I am experiencing several issues with the OS style
> menu in 0.12.1 as
> well. I opted to upgrade the rest of the library
> but keep the
> previous menu version.
>
> --- In ydn-javascript@yahoogroups.com,
> "kavithapronet"
> <kavithapronet@...> wrote:
> >
> > Hii all,
> >
> > I am using popup menu on mouse over event of yui
> > I have problem in mouseover event in 12.1 version
> in menu.js,,
> >
> > if i move mouse over menu before i move mouse upon
> menu items,,menu
> > disappears
> >
> > This problem was not there in 12.0 version,it was
> working fine.
> >
> > I am subscribing to mouseOver event and then
> rendering the menu
> >
> > menu.mouseOutEvent.subscribe(onMenuMouseOut, menu,
> true);
> > menu.render(document.body);
> >
> > Do i need to add anything more in 12.1 version?
> >
> > Plz reply
> >
> > Thank You
> >
>
>
>
>
>
> Yahoo! Groups Links
>
> (Yahoo! ID required)
>
> mailto:ydn-javascript-fullfeatured@yahoogroups.com
>
>
>
>
>
>






#7983 From: Todd Kloots <kloots@...>
Date: Sat Dec 30, 2006 5:02 pm
Subject: Re: 0.12.1 yuimenu - problem in mouseOver event
toddkloots
Send Email Send Email
 
I'd be happy to help you debug this if you could
provide a code sample.

Thanks.

- Todd

--- kavithapronet <kavithapronet@...> wrote:

> Hii all,
>
> I am using popup menu on mouse over event of yui
> I have problem in mouseover event in 12.1 version in
> menu.js,,
>
> if i move mouse over menu before i move mouse upon
> menu items,,menu
> disappears
>
> This problem was not there in 12.0 version,it was
> working fine.
>
> I am subscribing to mouseOver event and then
> rendering the menu
>
> menu.mouseOutEvent.subscribe(onMenuMouseOut, menu,
> true);
> menu.render(document.body);
>
> Do i need to add anything more in 12.1 version?
>
> Plz reply
>
> Thank You
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
> (Yahoo! ID required)
>
> mailto:ydn-javascript-fullfeatured@yahoogroups.com
>
>
>
>
>
>






#7959 From: "bubbarubadub" <randall.toepfer@...>
Date: Fri Dec 29, 2006 5:32 pm
Subject: Re: 0.12.1 yuimenu - problem in mouseOver event
bubbarubadub
Send Email Send Email
 
I am experiencing several issues with the OS style menu in 0.12.1 as
well. I opted to upgrade the rest of the library but keep the
previous menu version.

--- In ydn-javascript@yahoogroups.com, "kavithapronet"
<kavithapronet@...> wrote:
>
> Hii all,
>
> I am using popup menu on mouse over event of yui
> I have problem in mouseover event in 12.1 version in menu.js,,
>
> if i move mouse over menu before i move mouse upon menu items,,menu
> disappears
>
> This problem was not there in 12.0 version,it was working fine.
>
> I am subscribing to mouseOver event and then rendering the menu
>
> menu.mouseOutEvent.subscribe(onMenuMouseOut, menu, true);
> menu.render(document.body);
>
> Do i need to add anything more in 12.1 version?
>
> Plz reply
>
> Thank You
>





#7909 From: "kavithapronet" <kavithapronet@...>
Date: Thu Dec 28, 2006 6:22 am
Subject: 0.12.1 yuimenu - problem in mouseOver event
kavithapronet
Send Email Send Email
 
Hii all,

I am using popup menu on mouse over event of yui
I have problem in mouseover event in 12.1 version in menu.js,,

if i move mouse over menu before i move mouse upon menu items,,menu
disappears

This problem was not there in 12.0 version,it was working fine.

I am subscribing to mouseOver event and then rendering the menu

menu.mouseOutEvent.subscribe(onMenuMouseOut, menu, true);
menu.render(document.body);

Do i need to add anything more in 12.1 version?

Plz reply

Thank You









 
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help