Menu icon Foundation
Foundation 6 Reveal with Ajax Content

So I found this - http://codepen.io/anon/pen/jAoKrW

And it's the only thing I could find to can suit my needs of dynamically loading an external html page in a reveal based on a links href.

The only problem I am running into with the above code is that (if) you open / close / then open the modal again.. the content will appear twice in the same modal.

Does anyone have a solution to this?

foundation 6revealAJAX

So I found this - http://codepen.io/anon/pen/jAoKrW

And it's the only thing I could find to can suit my needs of dynamically loading an external html page in a reveal based on a links href.

The only problem I am running into with the above code is that (if) you open / close / then open the modal again.. the content will appear twice in the same modal.

Does anyone have a solution to this?

Igor almost 2 years ago

Just replace

.append to.html

https://codepen.io/anon/pen/XggoKX

jinch almost 2 years ago

Awesome tip Igor!
Thank you for sharing.

Much appreciated.