Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User zhangyancal's Avatar
    Join Date
    Mar 2010
    Posts
    4
    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 Moderator isalento's Avatar
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833
    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 zhangyancal's Avatar
    Join Date
    Mar 2010
    Posts
    4
    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 zhangyancal's Avatar
    Join Date
    Mar 2010
    Posts
    4
    Anybody can help? Thanks a lot!

  5. #5
    Registered User JasperGoes's Avatar
    Join Date
    Mar 2010
    Location
    Zaandam, Holland
    Posts
    71
    So you say you want to fire a function right before exit,

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

  6. #6
    Registered User zhangyancal's Avatar
    Join Date
    Mar 2010
    Posts
    4
    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. Раскладка клавиатуры в консоли
    By arkenoi in forum Russian Developer Forum - Форум Российских разработчиков
    Replies: 11
    Last Post: 2009-03-18, 18:27
  2. How to Override the Menu Options in the UI Form View
    By salanalani in forum Symbian C++
    Replies: 10
    Last Post: 2009-03-09, 09:09
  3. Music resources
    By LiveRock in forum Mobile Java General
    Replies: 9
    Last Post: 2007-12-01, 08:15
  4. want to override the default IAP dialog
    By vasant21 in forum Symbian C++
    Replies: 0
    Last Post: 2006-07-21, 11:45
  5. Replies: 9
    Last Post: 2006-03-30, 08:36

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