Skip to content

Instantly share code, notes, and snippets.

@digisavvy
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digisavvy/585d3bdbfcd7b0aa5a09 to your computer and use it in GitHub Desktop.
Save digisavvy/585d3bdbfcd7b0aa5a09 to your computer and use it in GitHub Desktop.
Use jquery to load a file into a div via an onclick event. Needed to do this to load a pageview on a single page, multi-step app where multiple pageviews needed to be recorded
jQuery(function ($) {
$(document).ready(function(){
$(".page1").click(function(){
$('#pageloader').load('path/to/file.html');
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment