Menu icon Foundation

Designer

My Posts



My Comments

Alan Smithee commented on Alan Smithee's post almost 6 years

Thanks, I'll try removing the divs, they proably don't belong there.

Alan Smithee commented on Neil Mastroianni's post almost 6 years
Alan Smithee commented on Steven Mapes's post almost 6 years

Neil. You are the man. Here's my working code, as further help to others:

By adding id="swap to my markup and then using that selector in the js, following your example, I've got a top-bar menu loading via interchange, with all js (e.g. dropdowns) working:

<div id="swap" data-interchange="[../small-header.html, (only screen)], [../medium-header.html, (medium)]">
</div>
$("#swap").on("replace", function() {
$(document).foundation();
});

Posts Followed

No Content

Following

    No Content

Followers

My Posts

My Comments

You commented on Alan Smithee's post almost 6 years

Thanks, I'll try removing the divs, they proably don't belong there.

You commented on Neil Mastroianni's post almost 6 years
You commented on Steven Mapes's post almost 6 years

Neil. You are the man. Here's my working code, as further help to others:

By adding id="swap to my markup and then using that selector in the js, following your example, I've got a top-bar menu loading via interchange, with all js (e.g. dropdowns) working:

<div id="swap" data-interchange="[../small-header.html, (only screen)], [../medium-header.html, (medium)]">
</div>
$("#swap").on("replace", function() {
$(document).foundation();
});

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content