×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    5

    PageLoaded/Ready-Event

    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
    Join Date
    Mar 2012
    Posts
    65

    Re: PageLoaded/Ready-Event

    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
    Registered User
    Join Date
    Jul 2012
    Posts
    5

    Re: PageLoaded/Ready-Event

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

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2012
    Posts
    65

    Re: PageLoaded/Ready-Event

    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
    Replies: 12
    Last Post: 2008-07-02, 09:37
  4. How could know the app launch is ready?
    By shunxing in forum Symbian
    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
  •  
×