Discussion Board

Results 1 to 4 of 4
  1. #1
    Hi,

    is there a possibilty to execute code when one page of the web app has been loaded completely or the user switched to one page?

    Best Regards,
    Fabian

  2. #2
    Nokia Developer Expert ZieL's Avatar
    Join Date
    Mar 2012
    Posts
    55
    Hi Fabian,

    every Page has visibleDidChange function which is called when the page gets shown/hidden. Just make sure you've not forgotten to call visibleDidChange of the parent.

    Code:
    global.lastfm.LandingPage = {
        visibleDidChange: function(visible, oldVisible) {
            this.constructor.prototype.visibleDidChange.apply(this, arguments);
            //do your stuff
        }
    }
    Leo

  3. #3
    This get's triggered a few times when loading the app. Do you know why?

  4. #4
    Nokia Developer Expert ZieL's Avatar
    Join Date
    Mar 2012
    Posts
    55
    The default value of the visible property of the page is false. That's the first initial call. Then it becomes visible (true) which leads to the second call.

Similar Threads

  1. What happened to "Ready Set {Code}" event?
    By hgohel in forum General Development Questions
    Replies: 7
    Last Post: 2012-05-08, 23:34
  2. Ready For Testing
    By redzvika in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 6
    Last Post: 2011-09-13, 11:48
  3. Is the SIM card ready?
    By Yupic in forum Symbian C++
    Replies: 12
    Last Post: 2008-07-02, 09:37
  4. How could know the app launch is ready?
    By shunxing in forum Symbian C++
    Replies: 3
    Last Post: 2008-03-17, 14:46
  5. KVM not ready
    By vuqpham in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2007-12-07, 12:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved