org.symbian.tools.wrttools.previewer/http-content/wrtdebugger/debugger.htm
author Eugene Ostroukhov <eugeneo@symbian.org>
Tue, 27 Apr 2010 16:29:25 +0100
changeset 322 a2085280e663
parent 305 be8783adb3a8
permissions -rw-r--r--
Fixed PhoneGap geolocation debug in Chrome browser

<html>
<head>
	<script type="text/javascript">
		var req;
		
		function connect() {
			req = new XMLHttpRequest();
			req.onreadystatechange = testconnection;
			req.open("GET", "testConnection" + window.location.search, true);
			req.send(null);
		}
		
		function testconnection() {
			if (req.readyState == 4) {
				if (req.status != 200) {
					window.setTimeout(connect, 200);
				} else {
					window.location = '../wrt_preview_main.html';
				}
			}
		}
	</script>
</head>
<body onload="connect()" style="color: silver;">

</body>