here is the code i am using. this is a 2013 Publishing Site. Kind of weird if you ask me. I just may need to include a file that i am not including now. The Idea is that i have created a custom theme and the navigation bar that comes with SharePoint does not fit our needs so i am trying to get the Navigation Items to build a custom Navigation Menu. I have it working with SP.Taxonomy this does not help me as i cannot open the calls there to the anonymous user. so was looking into the navigation scripts. The code is in a javascript file i have included. I have others that get list properties without issue. This is my last piece of the puzzle.
Unable to get property '$3_0' of undefined or null reference
var NavStore = new SP.Navigation(LocalThis.ClientContext);
var NavStoreItems = NavStore.get_topNavigationBar();
LocalThis.ClientContext.load(NavStoreItems);
LocalThis.ClientContext.executeQueryAsync(function (sender, args) {
var enumerator = NavStoreItems.getEnumerator();
while (enumerator.moveNext()) {
var NavItem = enumerator.get_current();
}
}, function (sender, args) {
console.error('AFLLC Menu Data fetch failed. ' + args.get_message() + 'n' + args.get_stackTrace());
});Thank you for All your Help.