org.symbian.tools.wrttools.previewer/http-content/wrtdebugger/debugger.htm
author Eugene Ostroukhov <eugeneo@symbian.org>
Wed, 14 Apr 2010 14:54:13 -0700
changeset 305 be8783adb3a8
parent 41 org.symbian.tools.wrttools.previewer/http-content/wrtdebugger/debugger.jsp@fc4a1d68260a
permissions -rw-r--r--
Removed white "Establishing debug connection" page.
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>