Skip to content

Instantly share code, notes, and snippets.

@mrcave
Last active December 10, 2015 19:08
Show Gist options
  • Save mrcave/4479008 to your computer and use it in GitHub Desktop.
Save mrcave/4479008 to your computer and use it in GitHub Desktop.
Implementing global regions
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#target_region').load('/assets-for-global-regions #element3535938_1349732 > div');
});
</script>
$('#target_div').load('/source-url #source_element > div');
<div id="target_region">
<!-- content will be loaded here -->
</div>
<div class="element" id="element3535938_1349732">
<div id="SubColumn_0_0_pnlDiv" class="textElement">
<p><strong>LightIgnite</strong><br>
PO Box 721322<br>
Oklahoma City, OK 73172</p>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment