Hi,

I am using Superfish for a navigational menu on a site.  At certain
times I need to add content to the menus.  I do this with an ajax call
and then insert the elements into the DOM at the appropriate location
within the menu.  How would I then activate the superfish
functionality on these inserted menu elements?

I have tried just calling superfish() on the entire menu again like
this:
     $("#theWholeMenu").superfish();

This seems to work, but I'm not sure it's the right way.

Also, I am using the supersubs extension to allow for wider menu
content.  However, when I re-initialized the whole menu after adding
to it dynamically like this:
     $("#theWholeMenu").supersubs({ extraWidth: 1 }).superfish();

 the supersubs do not seem to work (the wider menu items are wrapped).

Any help would be greatly appreciated.

Thanks,

Dave

Reply via email to