jQWidgets Forums

jQuery UI Widgets Forums Navigation Menu, Context Menu can only json menu get the parent id?

This topic contains 2 replies, has 2 voices, and was last updated by  Dimitar 11 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • can only json menu get the parent id? #28976

    Hi Peter,

    can only json menu get the parent id?

    i used <ul><li> structure to set the menu, but cannot get the parentid of submenu trough below code. check in firebug, and found the html code changed to different div between topmenu and submenu.

    however, it is hard to put images into jason menu, right?

    function _getParentMenuItem(el)

    {
    var startMenuItems = $(‘#startMenu > ul > li’).slice(1, 7);
    var parent = $(el).parent();
    return startMenuItems.index(parent);
    }

    can only json menu get the parent id? #28981

    seems json menu also cannot get the parentid, even have this in datafields.

    btw, why i failed to load the separated json file as data source by using url property?

    can only json menu get the parent id? #29012

    Dimitar
    Participant

    Hello africanfarmer,

    The provided information is insufficient for us to determine the source of the issue. Please provide us with a sample code which demonstrates it.

    As for loading images, please note there is a third option for building a tree – by using a source array, as shown in the example Load Menu from Array.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.