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

      0  

    Default Unanswered: how do you add a document event listener

    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 - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,413
    Vote Rating
    129
    Answers
    68
    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
    Sencha Architect Development Team

Thread Participants: 1