Skip to content

Instantly share code, notes, and snippets.

@pmuellr
Created March 1, 2012 13:56
Show Gist options
  • Save pmuellr/1949966 to your computer and use it in GitHub Desktop.
Save pmuellr/1949966 to your computer and use it in GitHub Desktop.
Run weinre and the demo in a single window within a frameset
<!-- ====================================================================== -->
<script>
function onLoad() {
var weinre = 'http://www.example.com/' // <- change to your weinre server base URL
var id = 'testing-1-2-3'
var targetURL = weinre + 'client#' + id
var clientURL = weinre + 'demo/weinre-demo.html#' + id
document.getElementById('target').src = targetURL
document.getElementById('client').src = clientURL
}
</script>
<!-- ====================================================================== -->
<frameset rows='50%,50%' onload='onLoad()'>
<frame id='target' />
<frame id='client' />
</frameset>
@pmuellr
Copy link
Author

pmuellr commented Mar 1, 2012

This will load the weinre client and a demo shipped with weinre in the same browser window, inside a frameset. Easier to test if the basic connections are all working correctly.

Save this file, edit to change the weinre variable to point to your server, perhaps update the id but why bother, and then load the file in your flavorite WebKit-based browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment