Hello.

I put the superfish menu on my page and using the OnBeforeShow method,
I am fetching menu items via ajax and placing the LI's in the current
UL.

I also see if there are children for the newly refreshed sub items and
I nest a new UL sort of like this:

if(item.subPageCnt > 0){
                        subIndicator='<span class="sf-sub-indicator">
&#187;</span>';
                        newUL='<ul ><li><a href="#aa">menu item</a></
li></ul>';
                    }

                    theUL.append('<li><a href="' + item.url +'"
target="' + item.target + '">' + item.displayName + subIndicator + '</
a>' + newUL + '</li>');

Those new children don't expand.  So, guessing that you can't
dynamically add structure to the menu.

Questions:
Is there a way I am missing which I can fetch structure dynamically?
Is there a refresh method to redraw the menu dynamically?
Any other suggestions for an ajax menu?

Reply via email to