diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-11-27 09:40:08 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-11-27 09:41:44 (GMT) |
commit | f9aa040505c5c679bed4181e462fb4d2b9216fa6 (patch) | |
tree | 1ebe013d1c3ae06ff0d8c1961b10dfdc82f6b69b /examples/declarative/tutorials/samegame/samegame4 | |
parent | 696b55195f1ad40a077683dbc533c73baf1536ee (diff) | |
download | Qt-f9aa040505c5c679bed4181e462fb4d2b9216fa6.zip Qt-f9aa040505c5c679bed4181e462fb4d2b9216fa6.tar.gz Qt-f9aa040505c5c679bed4181e462fb4d2b9216fa6.tar.bz2 |
Fix use of XmlHttpRequest in examples
Diffstat (limited to 'examples/declarative/tutorials/samegame/samegame4')
-rwxr-xr-x | examples/declarative/tutorials/samegame/samegame4/content/samegame.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/declarative/tutorials/samegame/samegame4/content/samegame.js b/examples/declarative/tutorials/samegame/samegame4/content/samegame.js index b833385..2a0d718 100755 --- a/examples/declarative/tutorials/samegame/samegame4/content/samegame.js +++ b/examples/declarative/tutorials/samegame/samegame4/content/samegame.js @@ -238,6 +238,7 @@ function sendHighScore(name) { var postData = "name="+name+"&score="+gameCanvas.score +"&gridSize="+maxX+"x"+maxY +"&time="+Math.floor(timer/1000); postman.open("POST", scoresURL, true); + postman.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); postman.onreadystatechange = function() { if (postman.readyState == postman.DONE) { dialog.show("Your score has been uploaded."); |