SHOW:
|
|
- or go back to the newest paste.
1 | - | window.onload = function() { |
1 | + | var url="https://nlportal.logica.com/obiwan/pages/,DanaInfo=.ahbenqjFnzx40u0t6qQu76+addWinner"; |
2 | - | document.padme.action = 'https://nlportal.logica.com/obiwan/pages/,DanaInfo=.ahbenqjFnzx40u0t6qQu76+addWinner?name=MartialCharre'; |
2 | + | url += "?name=MartialCharre"; |
3 | - | document.padme.submit(); |
3 | + | url += "&validatingUuid="+document.padme.validatingUuid.value; |
4 | - | }; |
4 | + | var xhr_object = null; |
5 | if(window.XMLHttpRequest) // Firefox | |
6 | xhr_object = new XMLHttpRequest(); | |
7 | else if(window.ActiveXObject) // Internet Explorer | |
8 | xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); | |
9 | else { // XMLHttpRequest non supporté par le navigateur | |
10 | alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); | |
11 | return; | |
12 | } | |
13 | xhr_object.open("GET", "foo.txt", true); | |
14 | xhr_object.onreadystatechange = function() { | |
15 | if(this.readyState == 4) alert(this.responseText); | |
16 | } | |
17 | xhr_object.send(null); | |
18 | ; |