summaryrefslogtreecommitdiffstats
path: root/demos/declarative/samegame/content/samegame.js
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-29 23:54:55 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-29 23:54:55 (GMT)
commite30409e0d93755bea4d18bcff4b9b86602c6dd52 (patch)
tree00a02590e4c2ed7cfe478c294935b06c11aa4829 /demos/declarative/samegame/content/samegame.js
parent15145a3b6d675c268b6262d11d390eaf9fc25fee (diff)
parentdc59b792119241988cdfe9f31d3aea55dcd5e8fe (diff)
downloadQt-e30409e0d93755bea4d18bcff4b9b86602c6dd52.zip
Qt-e30409e0d93755bea4d18bcff4b9b86602c6dd52.tar.gz
Qt-e30409e0d93755bea4d18bcff4b9b86602c6dd52.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'demos/declarative/samegame/content/samegame.js')
-rwxr-xr-xdemos/declarative/samegame/content/samegame.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/declarative/samegame/content/samegame.js b/demos/declarative/samegame/content/samegame.js
index 3598c26..8651c84 100755
--- a/demos/declarative/samegame/content/samegame.js
+++ b/demos/declarative/samegame/content/samegame.js
@@ -235,6 +235,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.");