|
Last change
on this file was 1, checked in by george, 18 years ago |
|
Prvnotní import původních kódů z wowresource.
|
|
File size:
727 bytes
|
| Line | |
|---|
| 1 | function request(url, result)
|
|---|
| 2 | {
|
|---|
| 3 | var xmlHttp;
|
|---|
| 4 | var where_result = result;
|
|---|
| 5 | if (window.ActiveXObject)
|
|---|
| 6 | {
|
|---|
| 7 | xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|---|
| 8 | }
|
|---|
| 9 | else if (window.XMLHttpRequest)
|
|---|
| 10 | {
|
|---|
| 11 | xmlHttp = new XMLHttpRequest();
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | xmlHttp.open("GET", url, true);
|
|---|
| 15 | xmlHttp.onreadystatechange= function()
|
|---|
| 16 | {
|
|---|
| 17 | if(xmlHttp.readyState == 4)
|
|---|
| 18 | {
|
|---|
| 19 | if(xmlHttp.status == 200)
|
|---|
| 20 | {
|
|---|
| 21 | where_result.innerHTML = xmlHttp.responseText;
|
|---|
| 22 | }
|
|---|
| 23 | }
|
|---|
| 24 | }
|
|---|
| 25 | xmlHttp.send(null);
|
|---|
| 26 |
|
|---|
| 27 | }
|
|---|
| 28 |
|
|---|
| 29 | function potvrd(u, q)
|
|---|
| 30 | {
|
|---|
| 31 | var url = u;
|
|---|
| 32 | var question = q;
|
|---|
| 33 | var ano = confirm(question);
|
|---|
| 34 | if (ano)
|
|---|
| 35 | {
|
|---|
| 36 | window.location.href = url;
|
|---|
| 37 | }
|
|---|
| 38 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.