Created
March 1, 2012 13:56
-
-
Save pmuellr/1949966 to your computer and use it in GitHub Desktop.
Run weinre and the demo in a single window within a frameset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ====================================================================== --> | |
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 theid
but why bother, and then load the file in your flavorite WebKit-based browser.