Results 1 to 2 of 2

Thread: how do you add a document event listener

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Brisbane
    Posts
    245
    Answers
    10
    Vote Rating
    4
      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,487
    Answers
    74
    Vote Rating
    145
      0  

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •