1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Brisbane
    Posts
    244
    Vote Rating
    4
    Answers
    10
    SuperRoo is on a distinguished road

      0  

    Default Unanswered: how do you add a document event listener

    Hi,
    am trying to listen to the online/offline event & the documentation says to :

    Code:
    document.addEventListener("online", onOnline, false);
    
    function onOnline() {
        // Handle the online event
    }
    but how do you dfo this in architect...tried adding an application event but no good...can't edit the app.html as Architect overwrites it ...any ideas?

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,485
    Vote Rating
    135
    Answers
    74
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default

    launch method of Application is designed for this kind of thing
    Aaron Conran
    @aconran

Thread Participants: 1