irina's Forum Posts

  • Nandynho

    Hm... can you take a look at my capx?

    Its pretty straightforward but i dont get result i was looking for...

    http://www.vixus.hr/test/json.capx

  • Nandynho

    Some help needed, I dont get how this works???

    I am loading json from https://api.ipdata.co/ with Load JSON i guess...

    so i set:

    tag: "geo"

    url: "https://api.ipdata.co/"

    post: "" (becouse i need GET)

    and what now?

    how do i read eg. latitude to set it in my variable?

    thanx!

  • Yann or anyone else...

    I am trying to understand this plugin but im lost...

    I need to set data from this json: https://api.ipdata.co/ into my global variables. Is there any capx example on how to do this?

    lets say i want to set latitude to mine LAT variable.... how to do this?

    Thanx!

  • problem is that user can go to next layout before data loads.... how to continue loading even if layout is changed?

  • thanks, ill try call for maybe he can tell me more...

    Maybe to set timer for like every 300 seconds to make ajax call? ... can that be set in included event? will timer work independently regarding other layouts/sheets and their execution?

    Problem is that this is an app and users can click and switch layouts quite offten and i really dont need that ajax to be updated very frequently... once per sesson or once per day is quite allright.

    But how to set that? How to set that ajax gets responce even if user switches layout?

  • Hello

    I need some clarification regarding included event sheet.

    I use one event sheet to download geodata from http://freegeoip.net/xml

    I have included this sheet to several other sheets and now i have this question...

    Does ajax download starts everytime i change from one to another sheet or is it executed only once even this sheet is included to several others?

    I am doing this becouse user can via click go from one layout to the other before download finishes and i really would not like to accidentaly flood them with requests.

  • marcinkowski

    I can tell you how i do things...

    I give my app to "dumbest" testers arround me... my small niece, old mother etc. sit by their side and watch what they do.

    (They start clicking on screen without any sence... they dont read instructions... etc)

    Now try to add visuals that would get in order those kind of users.

  • matriax

    Excellent work!

    Is it possible to set small angle to camera so that its not exactly 90° top down?

  • Lordshiva1948

    Thank you... ill try to adjust it to my problem.

  • I have several instances of the same object that are invisible and i would like to pick only the visible one?

    And on that event to trigger ajax post... but only once... becouse currently i have ajax flooding my table...

    Help!!!!

  • Kenthria

    Really impressive!

  • SOLVED:

    it was needed to add extra "&" to the each fillowing expression

    eg.

    "user_id="&userID &"&reg="&reg &"&os="&OS

  • this is mine ajax data

    "user_id="&userID &"reg="&reg &"os="&OS

    part my php that handles it looks like this:

    if(isset($_POST['user_id'])&&isset($_POST['reg'])&&isset($_POST['os'])){
    
         $user_id = strip_tags(mysqli_real_escape_string($link, $_POST['user_id']));
         $reg = strip_tags(mysqli_real_escape_string($link, $_POST['reg']));
         $os = strip_tags(mysqli_real_escape_string($link, $_POST['os']));
    
         $sql = mysqli_query($link, "INSERT INTO `$db`.`users` (`id`,`user_id`, `reg`, `os`) VALUES ('','$user_id', '$reg', '$os');");[/code:3gzpo2r0]
    
    it works ok for one dataset... eg. user_id it set to table as intended but how to send several items at once?
    ...becouse i get all set in user_id in one string
    
    So i assume problem is in ajax data setting... i must be doing it wrong?
  • Base

    hello,

    i have same problem...

    im trying to POST several variables in the same ajax request but no luck...

    Did you solve this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How to One detect that APP was suspended or turned off and then resumed?

    tnx!