lennaert's Recent Forum Activity

  • Using HData like ""   (empty)

    I get this in the response tab:

    array(14) {

    ["Content-Length"]=>

    string(1) "4"

    ["Content-Type"]=>

    string(48) "application/x-www-form-urlencoded; charset=UTF-8"

    ["Accept"]=>

    string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"

    ["Accept-Language"]=>

    string(14) "en-gb,en;q=0.5"

    ["Cache-Control"]=>

    string(8) "no-cache"

    ["Connection"]=>

    string(5) "close"

    ["Dnt"]=>

    string(1) "0"

    ["Host"]=>

    string(15) "lennaerthohe.nl"

    ["Origin"]=>

    string(22) "http://localhost:50000"

    ["Pragma"]=>

    string(8) "no-cache"

    ["Referer"]=>

    string(23) "http://localhost:50000/"

    ["User-Agent"]=>

    string(72) "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0"

    ["X-Forwarded-For"]=>

    string(13) "94.212.140.34"

    ["X-Real-Ip"]=>

    string(13) "94.212.140.34"

    }

    As soon as I put something in the HData entry field t doesnt work.

  • Your using Yii framework :) nice stuff, but, does way too much in the background.

    try a blank php page and add:

    <?php

    header('Access-Control-Allow-Origin: *');

    var_dump(getallheaders());

    ?>

  • Can you post an example of what to input in the HData entry field ?

  • If you use firefox, and install the firebug plugin, then have the console open as your call is made, you can see the all the details of the calls, including the headers.

  • I got this standard when my sprites are bigger then 2048x2048

  • Have you tried starting your construct as admin ?

  • Ok, got it to work partially.

    my calls go through to a php page after I added the cross domain support to my php file:

    header('Access-Control-Allow-Origin: *');

    edit: did you happen to write your test pages, and tested them, from the same server you are making your call too ?

    In that case it would work, as its the same domain.

    Bbut when you use previewe from construct, or from a mobile device where it is installed as an app, its form another domain.

  • edit: nvm, doing new test, unpacked wrong

  • You could use firefox with firebug, then check the console (ctrl+shift+j) for advanced information and insight to your ajax calls.

    For instance, the error code (if any) could give a good indication whats wrong.

    It will give a clear indication whether or not it was a valid call.

    I use firebug with anything url calls related, as it gives moset possible insight to whats wrong with a call, and, if need be, check the contents down to the headers if need be :)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • 1+1+1+3+6   << how would that one work ? wouldnt that be 12 ? (whats the reasoning behind it)

    You statement: I have to calculate the sum of all numbers in the range 10.

    Leaves a lot to the imagination.

    Or it could be 55.   >_>

  • There are some good javascrip engines out there for chess, not the best or smartest, but far more capable then you would likely imagine.

    Oscar Toledo site, nanochess

    You would need to derrive your own construct 2 equivelant from it.

    Here is a running example

lennaert's avatar

lennaert

Early Adopter

Member since 8 Oct, 2013

Twitter
lennaert has 13 followers

Connect with lennaert

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

25/44
How to earn trophies