author | Eugene Ostroukhov <eugeneo@symbian.org> |
Thu, 04 Nov 2010 15:22:02 -0700 | |
changeset 495 | 0008ebdc0ec0 |
parent 485 | df4f55e8569e |
permissions | -rw-r--r-- |
485
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
1 |
<html> |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
2 |
<head> |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
3 |
<script type="text/javascript"> |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
4 |
var req; |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
5 |
|
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
6 |
function connect() { |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
7 |
req = new XMLHttpRequest(); |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
8 |
req.onreadystatechange = testconnection; |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
9 |
req.open("GET", "testConnection" + window.location.search, true); |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
10 |
req.send(null); |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
11 |
} |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
12 |
|
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
13 |
function testconnection() { |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
14 |
if (req.readyState == 4) { |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
15 |
if (req.status != 200) { |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
16 |
window.setTimeout(connect, 200); |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
17 |
} else { |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
18 |
window.location = '../wrt_preview_main.html'; |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
19 |
} |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
20 |
} |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
21 |
} |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
22 |
</script> |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
23 |
</head> |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
24 |
<body onload="connect()" style="color: silver;"> |
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
25 |
|
df4f55e8569e
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
diff
changeset
|
26 |
</body> |