Skip to content

Instantly share code, notes, and snippets.

@Halleck45
Created December 22, 2014 15:44
Show Gist options
  • Save Halleck45/e13380bf03c83a24b827 to your computer and use it in GitHub Desktop.
Save Halleck45/e13380bf03c83a24b827 to your computer and use it in GitHub Desktop.
pick Jenkins monitor table
<iframe id="frame-monitor" style="display:none; " src="http://jenkins.xxxx.fr/view/Administration/job/Administration%20-%20Monitoring/2/sitemonitor/"></iframe>
<div id="div-monitor"></div>
<script type="text/javascript">
var iframe = document.getElementById('frame-monitor');
iframe.onload = function() {
var innerDoc = (iframe.contentDocument) ? iframe.contentDocument : iframe.contentWindow.document;
var table = innerDoc.getElementById('files');
var container = document.getElementById('div-monitor');
container.appendChild (table);
iframe.parentNode.removeChild( iframe );
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment