Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

submenu onFocus event

Home › Forums › Older releases › 1.0.x › submenu onFocus event

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3271
    nemethygabor
    Participant

    Hi,

    is it possible to call a javascript, when a submenu become visible/focus?

    I like to modify the content of a DIV in this submenu with ajax, and I like to
    load the content, when this submenu become visible. Thanks for your help!

    br,
    Gabor

    #3272
    nemethygabor
    Participant

    One more question: if I give id to the submenus, can I check somehow, if the submenu is visible or not?

    Thanks for your help!

    #3299
    nemethygabor
    Participant

    Nobody?

    #3363
    admin
    Keymaster

    Not sure if you still need this but you would have to use the API in one way or another. Check the following events:

    http://www.smartmenus.org/docs/#beforeshow
    http://www.smartmenus.org/docs/#show

    You could check if any sub menu is visible at any given moment, for example, like this:

    var $subMenu = $('#mySubMenu'); // the id of the UL element
    if ($subMenu.is(':visible')) {
    	// ...
    }
    #3381
    nemethygabor
    Participant

    Thanks for your help 🙂 I will try it!

    br,
    Gabor

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘1.0.x’ is closed to new topics and replies.