facebook

Javascript Events and Json inside application

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #326115 Reply

    icemandev
    Member

    Q. I don’t see where set the events in one screen, fx, if I want run some js code before load the page or
    maybe after or were ever… how I set that.
    Q. What is the difference between Static Page and Ajax Page
    Q. If I change the file extension to .php I can write php code inside the page
    Q. Where I can create coding page fx. javascript code.
    Q. If I want upload my own images where I do that.

    More questions… I trying to implement this code when my app is loaded and doesn’t work,
    can u tell me why and where I have to put this code to connect with my WEB SERVICE.

    Home Page: Home.html and I insert this code at the beginnig of Home.js

    var serviceURL = “http://thebankmiami.com/mobile/phgjqm/services/”;

    //get winner time
    $.getJSON(serviceURL + ‘getsettings.php’, function(data){
    var setting = data.item;
    var customer_winner_time = setting.winner_time;
    alert(customer_winner_time);
    //$(“div#next_winner_time”).html(“<font style=’color:yellow;’>Next Winner at:” + customer_winner_time + “</font>”);
    });

    This code works fine in my Eclipse Application

Viewing 1 post (of 1 total)
Reply To: Javascript Events and Json inside application

You must be logged in to post in the forum log in