×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Exclamation Override of default Exit function

    Right now, onExit() can't override the default exit() function. For example:

    widget.onexit = function()
    {
    //alert(widget.identifier);
    MoObject.trackShutdown("Exit MoSurfPhoto", currentScreen);
    var isExit = confirm('- Do you want to exit?');
    if (isExit == true)
    window.close();
    };

    For my WRT widget to work correctly, I have to create another Exit-Normally function. But that's not the best solution. I'm wondering Nokia tech can help on this. We will likely work as Nokia partners in the future. This feature is very important for us.

    Thanks!

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Override of default Exit function

    Hello,

    Indeed you cannot "cancel" the onexit event, it is called when widget is closed for cleanup etc..

    I don't see what is the downside of using custom exit callback function and setRightSoftkeyLabel?

    -Ilkka

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Unhappy Re: Override of default Exit function

    Actually I don't want to cancel the onexit function. What I want to do is to call my own function right before the widget exits. But I was not able to do that. Maybe I missed something there. Do you have any suggestions?

    Thanks a lot!

  4. #4
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Re: Override of default Exit function

    Anybody can help? Thanks a lot!

  5. #5
    Registered User
    Join Date
    Mar 2010
    Location
    Zaandam, Holland
    Posts
    71

    Re: Override of default Exit function

    So you say you want to fire a function right before exit,

    isnt that just -exactly- what onexit does? -.-

  6. #6
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Re: Override of default Exit function

    Yes, it should be. But when I did with my widget on Nokia XpressMusic, it didn't work like that. Maybe it's just this particular phone.

Similar Threads

  1. Replies: 10
    Last Post: 2009-03-09, 09:09
  2. Music resources
    By LiveRock in forum Mobile Java General
    Replies: 9
    Last Post: 2007-12-01, 08:15
  3. want to override the default IAP dialog
    By vasant21 in forum Symbian
    Replies: 0
    Last Post: 2006-07-21, 11:45

Posting Permissions

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