initialize superfish loaded into div
i'm building a website and want to only have the navigation exist on one file, verses updating the navigation on every body html.
so, i'm loading nav.html into <div id="navbar"></div> on each of the main body pages with ajax.
everything is working properly up to this point. the nav is being loaded and the css is being applied. however, i can't seem to call the initialize plugins command.
// initialise plugins
jQuery(function(){
jQuery('ul.sf-menu').superfish();
});
it works fine, if i call it from within nav.html and view that page by itself. when i load nav.html into one of the body.html's, it fails.
i've tried everything i can think of to try and target how the nav is nested inside the navbar div.
i have also tried calling the function after the page loads onLoad and after the ajax loads the nav.
does the initialize plugins command need something else to tell it to look inside the navbar div? i tried using the .live and .bind commands for jquery, but couldn't get those to work either.
thanks in advance for any help!!
jason