following assumes superfish.js is loaded with initial page $("#mymenuContainer").load("mymenufile.xxx", function() { $(".sf-menu").superfish( {//my superfish options}); }); callback function will fire after the html loaded. Another method is to put the superfish constructor code at bottom of your html in the file to be loaded and skip the callback function above if you want error capability use full $.ajax() to load the menu in success option and do whatever you might want in error option. Greg-J wrote: I am using Superfish for a 4 tiered menu which, when complete, will consist of several hundred individual links. As to not be penalized by the big G, I want to load this menu via AJAX. My question then is, how would I go about doing this so that the menu is loaded into it's container div and then superfish() is applied? |
- [jQuery] Load Superfish menu with AJAX Greg-J
- Re: [jQuery] Load Superfish menu with AJAX Charlie