enigmatico

Members
  • Content count

    2
  • Joined

  • Last visited

  1. I've used the option 1, it works! Thanks!!
  2. Hi, I want to connect with a database to save the scores, but, on first, I'm making a test. I'm trying with this sample code to know if I could receive simply "text" request, var pause_ajax = this.game.add.text(this.game.world.centerX, this.game.world.centerY+30, "connection"); pause_ajax.inputEnabled = true; pause_ajax.events.onInputUp.add(function () { var ajaxUrl = "http://www.anotherurlnotinmighty.es/php.php"; $.ajax({ url: ajaxUrl, dataType: "html", method: "post", beforeSend: function() { }, success: function() { alert("work"); }, error: function(){ alert("error") } }); }); The php file is on another server. When I click the label, this makes the connection but it don't recive anything. ResponseText="" php.php <?php session_start(); print "test"; ?> jQuery is correctly imported on my project. There are any other best option to save the scores on dataBase? Thanks