×

Discussion Board

Results 1 to 5 of 5

Thread: Catching Exit

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    10

    Red face Catching Exit

    How I catch Widget Exit from menu. The right Exit can be overwrite but Exit in the menu cannot. Overwriting window.close doesn't help. I need it for saving data before exit.

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Catching Exit

    Hi nguyen,

    not really a solution, but a rough workaround: you could force a save of your data on the menu onShow event. You would end up with more savings than needed, but it could work, waiting for better solutions

    Pit

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    10

    Re: Catching Exit

    That is also a good solution but if saving a lot of data, trigger a menu will take some time. I have tried onunload but no help. This is what I found in the Apatana plugin when select exit: javascript:Emulator.triggerMenuExit();.

    Loc

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Catching Exit

    My guess is that the triggerMenuExit() JavaScript function is emulator-specific, and that there's no equivalent in "real" WRT environment. Anyway, some tests could solve this point

    Pit

  5. #5
    Registered User
    Join Date
    Jul 2003
    Posts
    10

    Re: Catching Exit

    I think it is only for Emulator.

Similar Threads

  1. Providing continuous network stream
    By directx in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2008-04-07, 18:41
  2. why my does not exit on N73 when i push exit soft key?
    By byronlilu in forum Mobile Java General
    Replies: 2
    Last Post: 2007-06-28, 21:29
  3. C++-Tool exit status codes during "make"
    By newnb in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-10-02, 21:54
  4. N70 Reset bug
    By sebboB in forum General Development Questions
    Replies: 2
    Last Post: 2005-12-28, 23:09
  5. UNDESIRED Exit command key.
    By tektronic in forum Mobile Java General
    Replies: 4
    Last Post: 2005-05-13, 18:27

Posting Permissions

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