org.symbian.tools.wrttools.previewer/http-content/wrtdebugger/debugger.htm
author Eugene Ostroukhov <eugeneo@symbian.org>
Thu, 15 Jul 2010 10:08:51 -0700
changeset 450 ed815e0eef9a
parent 305 be8783adb3a8
permissions -rw-r--r--
Bug 3268 - Debugger does not start on Windows XP
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     1
<html>
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     2
<head>
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     3
	<script type="text/javascript">
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     4
		var req;
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     5
		
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     6
		function connect() {
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     7
			req = new XMLHttpRequest();
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     8
			req.onreadystatechange = testconnection;
305
be8783adb3a8 Removed white "Establishing debug connection" page.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 41
diff changeset
     9
			req.open("GET", "testConnection" + window.location.search, true);
2
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    10
			req.send(null);
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    11
		}
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    12
		
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    13
		function testconnection() {
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    14
			if (req.readyState == 4) {
305
be8783adb3a8 Removed white "Establishing debug connection" page.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 41
diff changeset
    15
				if (req.status != 200) {
2
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    16
					window.setTimeout(connect, 200);
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    17
				} else {
305
be8783adb3a8 Removed white "Establishing debug connection" page.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 41
diff changeset
    18
					window.location = '../wrt_preview_main.html';
2
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    19
				}
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    20
			}
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    21
		}
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    22
	</script>
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    23
</head>
305
be8783adb3a8 Removed white "Establishing debug connection" page.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 41
diff changeset
    24
<body onload="connect()" style="color: silver;">
be8783adb3a8 Removed white "Establishing debug connection" page.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 41
diff changeset
    25
2
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
    26
</body>